1
00:00:00,360 --> 00:00:07,080
That's how it is our estate is going to be equal to the items constants look like it is the same reason

2
00:00:07,080 --> 00:00:12,090
why you can see I have put only carpets in so they don't be amazing.

3
00:00:12,090 --> 00:00:17,750
So like this and we have cardboard items.

4
00:00:17,970 --> 00:00:20,310
Shift is very good.

5
00:00:23,630 --> 00:00:30,620
And let us come first all here, so I'm going to say for for assistant states.

6
00:00:35,020 --> 00:00:38,470
I can't see any items let us go back first for.

7
00:00:41,890 --> 00:00:42,480
Lord.

8
00:00:44,030 --> 00:00:45,050
Click on this.

9
00:00:47,080 --> 00:00:48,280
Sure, there's something.

10
00:00:49,770 --> 00:00:50,850
OK, very good.

11
00:00:50,880 --> 00:00:55,310
So you can see for the first time, we have one element, OK?

12
00:00:55,710 --> 00:00:59,130
And the second time if we click, you're going to see we have two elements.

13
00:00:59,140 --> 00:01:02,690
And if it's to open, you're going to see we have a different index.

14
00:01:02,700 --> 00:01:04,290
The first index is Naison.

15
00:01:04,710 --> 00:01:06,530
The second index is Toyota.

16
00:01:06,840 --> 00:01:09,220
That means we have succeeded through something.

17
00:01:09,420 --> 00:01:12,200
Cards like it is very simple.

18
00:01:12,240 --> 00:01:13,640
Okay, very good.

19
00:01:13,800 --> 00:01:17,490
And if they try to add in order, I have three elements.

20
00:01:17,720 --> 00:01:18,060
Okay.

21
00:01:18,870 --> 00:01:25,440
So let us suppose I want to add the same elements for the second time, OK.

22
00:01:26,310 --> 00:01:33,390
For at least the second time, I can add second time, three times a leghorns, for example.

23
00:01:33,540 --> 00:01:37,350
Let us back here, reload this page for the first.

24
00:01:37,350 --> 00:01:39,750
I have the first elements.

25
00:01:39,750 --> 00:01:44,520
Click here, I have a tree and I want to add the same product.

26
00:01:44,520 --> 00:01:46,140
This thing and some slaters click.

27
00:01:46,770 --> 00:01:49,390
You will see I have two elements in effect.

28
00:01:49,410 --> 00:01:59,370
Like you can see I have the same elements two times, OK, two times letters open and you'll see here

29
00:01:59,450 --> 00:02:06,210
we have image and it is equal to one for these elements and here is equal to true.

30
00:02:06,480 --> 00:02:10,380
But we have the elements in cards, so we must to avoid this problem.

31
00:02:10,770 --> 00:02:17,580
Once you want to add something which is already in our Ricard's, you need only to increase the cards,

32
00:02:17,580 --> 00:02:18,840
which is the quantity.

33
00:02:19,170 --> 00:02:25,290
OK, instead of to add in element in our erase, OK, we must avoid this problem.

34
00:02:25,290 --> 00:02:29,190
So what we're going to do, we're going to back our viewers to your codes.

35
00:02:29,340 --> 00:02:32,220
We are going to solve this problem and what are we going to do?

36
00:02:32,700 --> 00:02:35,430
We are going to come here by using the already cards.

37
00:02:35,700 --> 00:02:41,880
The first thing we're going to do, we are going to access our items to see if the element that we want

38
00:02:41,880 --> 00:02:49,830
to AIDS by using the ID, OK, by using the the ID, namely by using the ID, we are going to access

39
00:02:49,830 --> 00:02:58,920
our items to see if we have any elements with this, with this idea and if the elements already exist.

40
00:02:59,130 --> 00:03:01,680
Are cards in our items here.

41
00:03:02,040 --> 00:03:08,600
We're going to push to add in other elements in our records, but we are going to increase only the

42
00:03:09,090 --> 00:03:10,740
quantity, OK?

43
00:03:11,010 --> 00:03:14,700
And then we are going to keep this condition in order to.

44
00:03:15,870 --> 00:03:24,490
And in order to to do more to save the game, in order to do more, to add some the elements in our

45
00:03:24,500 --> 00:03:31,950
Ricard's, so let us come here, we are going to say we are going to take our items and we are going

46
00:03:31,950 --> 00:03:34,410
to use the foreheads look like this.

47
00:03:34,740 --> 00:03:43,780
And in such here we are going to define a neural function and what we're going to say actis OK.

48
00:03:44,280 --> 00:03:46,140
A we're going to say if.

49
00:03:48,800 --> 00:03:57,710
We're going to say, if I so this does mean access our license compared if the current elements that

50
00:03:57,710 --> 00:04:03,290
we want to it in our records, if it's idee, we can find it in our records.

51
00:04:03,290 --> 00:04:08,450
If it's already exist, if it's already exist, do not push again, OK?

52
00:04:08,810 --> 00:04:10,370
Do not push again here.

53
00:04:10,610 --> 00:04:14,980
And we are going to increase only the accounts of the specific elements.

54
00:04:15,200 --> 00:04:18,240
I thought I'd it ok.

55
00:04:19,130 --> 00:04:23,590
Is it true they call ok.

56
00:04:23,960 --> 00:04:26,690
They cartloads it like this.

57
00:04:27,230 --> 00:04:36,260
The thing we're going to do is to take Cowens OK is going to be equal to plus plus and we are going

58
00:04:36,260 --> 00:04:44,690
to say the already ok we are going to set the already in cart is going to be equal to true.

59
00:04:45,080 --> 00:04:52,730
And when we going to finish with this, we are going to come here and this condition want to be verified

60
00:04:52,730 --> 00:05:00,200
can to be verified and we are going to keep this condition instead of pushing something in our eRate,

61
00:05:00,350 --> 00:05:07,190
we are going to keep this condition because they can't only is increased like I think that it is very

62
00:05:07,190 --> 00:05:07,730
simple.

63
00:05:07,940 --> 00:05:09,560
And here we have a count.

64
00:05:11,280 --> 00:05:20,330
Or is it we have some trouble here or trying to say we're going to say no item.

65
00:05:20,970 --> 00:05:23,570
Yes, very good item that counts.

66
00:05:23,580 --> 00:05:25,040
Plus plus Reynolds.

67
00:05:25,420 --> 00:05:32,250
OK, we're going to have item that counts plus plus like this because item is from our record items.

68
00:05:32,430 --> 00:05:35,000
Okay, so let us go back here in.

69
00:05:35,000 --> 00:05:35,040
Sure.

70
00:05:36,090 --> 00:05:38,710
We have Larry and click on this one.

71
00:05:39,420 --> 00:05:40,650
This is the first elements.

72
00:05:40,650 --> 00:05:41,630
Let us click on.

73
00:05:41,820 --> 00:05:48,870
Yes, we have car three and if we click in the same elements two times, we have only one element.

74
00:05:49,020 --> 00:05:52,980
But the count is equal to two to two for the first time.

75
00:05:52,980 --> 00:05:53,920
You're going to see later.

76
00:05:53,940 --> 00:05:57,010
Scroll down, click here for the first time.

77
00:05:57,050 --> 00:05:59,580
OK, you can see we have is equal to two.

78
00:05:59,590 --> 00:06:04,260
OK, it is updated like the count is equal to two.

79
00:06:04,260 --> 00:06:05,430
So let us reload.

80
00:06:06,720 --> 00:06:07,320
Click on it.

81
00:06:09,000 --> 00:06:09,710
Computer.

82
00:06:10,890 --> 00:06:13,440
The count is equal to two for the first time.

83
00:06:14,850 --> 00:06:15,300
They come in.

84
00:06:16,360 --> 00:06:16,720
OK.

85
00:06:19,900 --> 00:06:29,310
Uh, for a first time is equal to one click here is equal to two, OK, so let us reload.

86
00:06:30,770 --> 00:06:32,580
Click on this song like.

87
00:06:34,040 --> 00:06:39,980
And look, here we have all one elements click on Toyota, we have now two elements.

88
00:06:40,160 --> 00:06:46,460
And if I were to click again on Toyota, we're going to have two elements, but we two quantities.

89
00:06:46,460 --> 00:06:47,570
So let us click your.

90
00:06:49,520 --> 00:06:50,510
We have to.

91
00:06:52,050 --> 00:06:53,000
Very good.

92
00:06:54,330 --> 00:06:59,250
They're going to come here through their records and we're going to continue in the next video.
