1
00:00:01,570 --> 00:00:06,490
OK, so our ad flashcard works now we want to create a subtract one.

2
00:00:06,520 --> 00:00:12,700
So what we can just do here is kind of copy all of the stuff from our ad.

3
00:00:14,320 --> 00:00:24,060
Functio, and so these two functions add and add, correct, and we can just kind of above here paste

4
00:00:24,070 --> 00:00:28,720
pasted in again and instead let's call this subtraction.

5
00:00:30,430 --> 00:00:33,070
And let's change this one up here.

6
00:00:35,350 --> 00:00:42,040
Subtract and we could just come through here and kind of, you know, spot check, change these.

7
00:00:42,040 --> 00:00:45,280
So subtract output answer correct.

8
00:00:45,520 --> 00:00:46,980
Let's leave all of these for now.

9
00:00:48,200 --> 00:00:51,770
Let's call this subtract answer.

10
00:00:52,760 --> 00:00:56,690
And then subtract correct label.

11
00:00:58,200 --> 00:01:00,810
And subtract.

12
00:01:02,640 --> 00:01:08,940
Correct label again and add answer will change just to subtract answer.

13
00:01:10,010 --> 00:01:15,200
And then add flash will change this to subtract Lasch.

14
00:01:18,180 --> 00:01:24,270
OK, and then this function, we'll call it subtract instead of add.

15
00:01:25,510 --> 00:01:28,660
And then instead of ad frame, this is subtract frame.

16
00:01:29,960 --> 00:01:36,910
And I think these can stay the same, so add Flash will change this to subtract flash, change this

17
00:01:37,130 --> 00:01:38,590
to act.

18
00:01:38,750 --> 00:01:43,910
I'm just going to copy the word subtract so I can just paste this in boom.

19
00:01:44,240 --> 00:01:46,760
And here we need to change it as well.

20
00:01:47,540 --> 00:01:50,210
And let's just look through here, ok.

21
00:01:50,280 --> 00:01:51,850
OK, that looks good.

22
00:01:52,620 --> 00:01:53,930
Well, let's call this.

23
00:01:55,290 --> 00:01:58,140
Subtract, answer and.

24
00:01:59,910 --> 00:02:04,170
Before bomb that that.

25
00:02:06,230 --> 00:02:07,670
That very scientific.

26
00:02:09,630 --> 00:02:17,840
We're almost done add frame, subtract frame, so this we want to change this to subtract.

27
00:02:17,840 --> 00:02:18,620
Correct.

28
00:02:21,270 --> 00:02:24,240
All right, and subtract button.

29
00:02:25,630 --> 00:02:27,670
And a couple more here.

30
00:02:29,270 --> 00:02:33,260
Add to subtract, basically, we're just changing all the ads to subtract.

31
00:02:33,740 --> 00:02:39,890
All right, so let's save this and give this a run to see if that possibly worked.

32
00:02:41,600 --> 00:02:43,480
So we want subtract.

33
00:02:43,490 --> 00:02:45,290
Oh, and that is still.

34
00:02:46,390 --> 00:02:47,020
No good.

35
00:02:47,060 --> 00:02:55,230
So all right, so let's go down here to our frames and subtract frame.

36
00:02:56,200 --> 00:02:57,900
We need to take this off.

37
00:02:58,160 --> 00:02:59,510
I want this color anymore.

38
00:03:00,130 --> 00:03:00,970
OK, so.

39
00:03:01,970 --> 00:03:07,670
Subtract frames come up to our subtract, oh, we have to subtract submenu right here.

40
00:03:12,160 --> 00:03:14,470
So we need to get rid of that.

41
00:03:17,260 --> 00:03:20,050
Because we put it up here instead.

42
00:03:23,090 --> 00:03:26,320
OK, so let's save this and give this a run now.

43
00:03:30,640 --> 00:03:35,010
OK, so three plus 10 is obviously not what we want, but let's just see if it worked.

44
00:03:36,090 --> 00:03:42,480
No, it did not add answer is not defined, so we missed some some things oh, let's look and see what

45
00:03:42,480 --> 00:03:48,210
line that was line 18 so it can come up here to line 18.

46
00:03:53,260 --> 00:03:57,840
Subtract answer, and we're going to have to fiddle with this logic as well, because this is still

47
00:03:57,840 --> 00:04:03,870
doing Ed. But let's just run this again to see what else we missed.

48
00:04:04,140 --> 00:04:05,610
I will surely miss something else.

49
00:04:05,620 --> 00:04:06,720
So eight plus nine.

50
00:04:07,900 --> 00:04:10,690
Incorrect 18, correct?

51
00:04:10,720 --> 00:04:11,630
OK, so that's working.

52
00:04:11,830 --> 00:04:18,580
Now we need to fiddle with the logic and this shouldn't take but a second, so let's go to our subtract

53
00:04:18,580 --> 00:04:20,470
correct and are now are correct.

54
00:04:20,470 --> 00:04:26,860
It should be number one, minus number two, and then everything else needs to be changed accordingly

55
00:04:26,860 --> 00:04:27,780
inside of here.

56
00:04:27,790 --> 00:04:31,780
So let's go minus there and minus there.

57
00:04:32,890 --> 00:04:35,710
OK, so let's save this, that should do it, I think.

58
00:04:39,520 --> 00:04:43,750
OK, so subtract zero plus we missed something here.

59
00:04:45,510 --> 00:04:54,990
So here, subtract flash config, this needs to be minus and also in our subtract right here for subtract

60
00:04:54,990 --> 00:04:59,530
flash label, this also needs to be minus OK.

61
00:05:00,840 --> 00:05:03,810
I feel pretty good now, I think maybe maybe we got it all.

62
00:05:05,250 --> 00:05:09,540
Let's so subtract four minus four is zero.

63
00:05:10,640 --> 00:05:17,750
Correct, for minus four equals zero, two, minus four is negative two, correct to minus four equals

64
00:05:17,750 --> 00:05:19,310
negative to ten, minus six.

65
00:05:19,310 --> 00:05:20,990
One hundred and forty three.

66
00:05:20,990 --> 00:05:24,680
Incorrect, ten minus six equals four, not one hundred and forty three.

67
00:05:24,890 --> 00:05:25,310
All right.

68
00:05:25,310 --> 00:05:27,040
So that was pretty simple.

69
00:05:27,110 --> 00:05:31,580
Some copying and pasting, a little tweaking here and there, but that's pretty much all there was to

70
00:05:31,580 --> 00:05:35,150
that in the next video will knock out the multiplication one.
