1
00:00:03,000 --> 00:00:12,000
Hello, friends in the cities of Libya, tutorials today, we'll discuss about comparison in Libya,

2
00:00:13,000 --> 00:00:17,000
so or here in functions programming, we have a comparison.

3
00:00:17,000 --> 00:00:26,000
Belliard Basically, this is used in any program like if you want to control the temperature of room

4
00:00:26,000 --> 00:00:36,000
or if you want to check the number of persons in a room and any comparison, you can use this.

5
00:00:36,000 --> 00:00:38,000
So one by one I will discuss this.

6
00:00:39,000 --> 00:00:41,000
So over here we have a do.

7
00:00:43,000 --> 00:00:53,000
So in this case, if the X is equal to you are Vye, in that case you can go to the true value.

8
00:00:54,000 --> 00:00:59,000
Like if we're here, we have four and over here we have two.

9
00:01:00,000 --> 00:01:01,000
In that case, it is false.

10
00:01:01,000 --> 00:01:09,000
And when I continuously run this and when X is equal to two, it will give me proof.

11
00:01:10,000 --> 00:01:11,000
So this is the case of.

12
00:01:14,000 --> 00:01:23,000
Comparison Belliard So we're here when it is not equal to when it is greater than when it is less than

13
00:01:23,000 --> 00:01:28,000
when, it is greater than equal to, less than equal to, or when it is equal to zero.

14
00:01:29,000 --> 00:01:34,000
So these are the functions you can use in your program.

15
00:01:35,000 --> 00:01:44,000
Like if we have three or four zero two hundred and we in that we select our number and I want to check

16
00:01:44,000 --> 00:01:45,000
that number.

17
00:01:45,000 --> 00:01:52,000
It is greater than zero or less than zero or it is greater than a specific value or less than a specific

18
00:01:52,000 --> 00:01:52,000
value.

19
00:01:52,000 --> 00:01:55,000
We can check using these functions.

20
00:01:56,000 --> 00:02:01,000
OK, it will give you any form of true and false only.

21
00:02:01,000 --> 00:02:05,000
OK, so now I just read this.

22
00:02:07,000 --> 00:02:11,000
This is the select function I like.

23
00:02:11,000 --> 00:02:12,000
Now I.

24
00:02:17,000 --> 00:02:18,000
Explain its function.

25
00:02:21,000 --> 00:02:21,000
So.

26
00:02:23,000 --> 00:02:25,000
Over here, this is the value.

27
00:02:26,000 --> 00:02:31,000
True, if the value is true right now, it is a.

28
00:02:34,000 --> 00:02:36,000
Function and or here it is, the value.

29
00:02:37,000 --> 00:02:43,000
So when it is true, like in this case, when it is there, it will evaluate and if is there, it will

30
00:02:43,000 --> 00:02:44,000
generate a value one.

31
00:02:45,000 --> 00:02:47,000
So then I had one continuous run.

32
00:02:47,000 --> 00:02:51,000
Right now it is false that we value one.

33
00:02:51,000 --> 00:02:52,000
When it is true, it will come later.

34
00:02:53,000 --> 00:02:57,000
So this is how you can use this.

35
00:02:58,000 --> 00:03:00,000
Select function and level.

36
00:03:00,000 --> 00:03:10,000
OK, so our next function is max minimum, if we have any function or any value, like in this case,

37
00:03:10,000 --> 00:03:13,000
creative control over here, again, creative control.

38
00:03:14,000 --> 00:03:22,000
And in this, you will want to check the value if the in this case we have a scalar value only order,

39
00:03:22,000 --> 00:03:23,000
one value is there.

40
00:03:24,000 --> 00:03:27,000
If we have a very we can find out, Max.

41
00:03:27,000 --> 00:03:29,000
Minimum of that also.

42
00:03:29,000 --> 00:03:32,000
So over here, this is the max over here.

43
00:03:33,000 --> 00:03:35,000
This is the minimum like in this case or here is seven.

44
00:03:36,000 --> 00:03:36,000
This is two.

45
00:03:37,000 --> 00:03:43,000
So when I hit bottom in this maximum is seven and minimum we do it will generate maximum remaining value

46
00:03:44,000 --> 00:03:45,000
of these two.

47
00:03:45,000 --> 00:03:49,000
Then we have in range and cost.

48
00:03:50,000 --> 00:03:58,000
Basically, when you don't control it over here, we have upper limit, then X and then lower limit.

49
00:03:58,000 --> 00:04:01,000
And this is the code and this is the end function.

50
00:04:01,000 --> 00:04:11,000
Basically over here I just create a control and again or here control it is the lower limit.

51
00:04:11,000 --> 00:04:20,000
And this is my value of X and this is the cause, the value and this is the it is in range or not.

52
00:04:21,000 --> 00:04:25,000
So my upper limit is like 10 and lower limit is zero.

53
00:04:25,000 --> 00:04:29,000
And when I continuously run this, this is in range.

54
00:04:29,000 --> 00:04:35,000
When I increase this, it is also in range cost values also there.

55
00:04:39,000 --> 00:04:49,000
Right now, upper limit is reached and my gold value is 10, so you can set your value and this value

56
00:04:50,000 --> 00:04:54,000
is right now exceeds input value is adding, but the value is ten.

57
00:04:54,000 --> 00:05:02,000
So you can set your values and upper limit and you can find out it is in range or not in danger.

58
00:05:02,000 --> 00:05:03,000
OK, not in that range.

59
00:05:04,000 --> 00:05:06,000
So this is how you can use it.

60
00:05:06,000 --> 00:05:07,000
Range and cost.

61
00:05:08,000 --> 00:05:11,000
Then if you find out any empty.

62
00:05:11,000 --> 00:05:17,000
Eddie, like over here first creator Eddy.

63
00:05:19,000 --> 00:05:34,000
And in this case, I just assigned I use this and I use in theory and in that area I want to check if

64
00:05:34,000 --> 00:05:36,000
there is any element is there or not.

65
00:05:37,000 --> 00:05:38,000
When I hit on the.

66
00:05:38,000 --> 00:05:43,000
So here it is empty because no element is in this.

67
00:05:44,000 --> 00:05:47,000
So when I put an element in this, it is off.

68
00:05:48,000 --> 00:05:51,000
So this is how you can check and empty it.

69
00:05:52,000 --> 00:05:54,000
Then we have empty string.

70
00:05:55,000 --> 00:05:55,000
You can check.

71
00:05:56,000 --> 00:05:58,000
So first I take a.

72
00:05:59,000 --> 00:06:01,000
Array of string.

73
00:06:03,000 --> 00:06:06,000
So just put strict control in this.

74
00:06:08,000 --> 00:06:15,000
Just connect this and create an integrated there, so again, in this case, I just.

75
00:06:17,000 --> 00:06:24,000
I I'm not putting any value in this, I just click on one button, so right now it is off.

76
00:06:26,000 --> 00:06:27,000
And I put.

77
00:06:28,000 --> 00:06:28,000
And evalu.

78
00:06:31,000 --> 00:06:35,000
So something is.

79
00:06:37,000 --> 00:06:46,000
From or here it comes true if string or partisan and string or otherwise, this function return false.

80
00:06:46,000 --> 00:06:54,000
OK, so this function is also designed to work with variant picture and dicy tags also.

81
00:06:54,000 --> 00:07:06,000
So I just delete this first and I create a string over here and in the string I just connect this and

82
00:07:06,000 --> 00:07:09,000
create an indicator over here.

83
00:07:09,000 --> 00:07:17,000
When I don't unbutton it is on because the string is empty when I put any letter or any word in this

84
00:07:17,000 --> 00:07:19,000
or any character in this case.

85
00:07:20,000 --> 00:07:23,000
OK, this is how you can use and when you use.

86
00:07:24,000 --> 00:07:30,000
Array of string like here I put.

87
00:07:32,000 --> 00:07:32,000
There's one.

88
00:07:33,000 --> 00:07:37,000
And when I mean, not this one.

89
00:07:39,000 --> 00:07:41,000
In this case, I have to put a string in this.

90
00:07:43,000 --> 00:07:52,000
So this is the case, I just connect this to this and this, because in this case, the input is spring

91
00:07:53,000 --> 00:07:54,000
everything.

92
00:07:54,000 --> 00:07:55,000
So I'll put this up also.

93
00:07:56,000 --> 00:08:00,000
So when I in this case, I have poor values.

94
00:08:01,000 --> 00:08:04,000
Again, I have poor values when I don't understand.

95
00:08:06,000 --> 00:08:12,000
So right now, I wouldn't assigned any value like over here just.

96
00:08:13,000 --> 00:08:16,000
Put a character in this A.

97
00:08:17,000 --> 00:08:21,000
And when I hit bottom, this one is got some value.

98
00:08:21,000 --> 00:08:22,000
This is not a string.

99
00:08:23,000 --> 00:08:26,000
So it is of all the three are pasting like this.

100
00:08:27,000 --> 00:08:30,000
And when I put on this also, it is also.

101
00:08:30,000 --> 00:08:34,000
OK, so this is how you can use how you can find out.

102
00:08:34,000 --> 00:08:36,000
Empty string in any.

103
00:08:39,000 --> 00:08:45,000
So this is the similar desert, basically, it is a part of this deal.

104
00:08:46,000 --> 00:08:52,000
So we're here I just the control and over here we have indicator.

105
00:08:53,000 --> 00:09:01,000
So as the first character is a letter, not nomadic, it will create a true function.

106
00:09:01,000 --> 00:09:05,000
So when I don't continuous one.

107
00:09:06,000 --> 00:09:13,000
So when I put forty five or fifty five again, it is true when I put a letter because it will generate

108
00:09:13,000 --> 00:09:17,000
to function when the first letter is a numeric.

109
00:09:17,000 --> 00:09:20,000
In this case it is alphabetical.

110
00:09:21,000 --> 00:09:22,000
So it is ok.

111
00:09:22,000 --> 00:09:30,000
OK, so this is work for the symbol only it will check for only the first letter as you see it until

112
00:09:30,000 --> 00:09:34,000
if represented a single digit range from zero to one.

113
00:09:35,000 --> 00:09:41,000
If you string this function uses the first vector in the string, if character is a number, this function

114
00:09:41,000 --> 00:09:44,000
interpret it as a value of the character.

115
00:09:45,000 --> 00:09:46,000
OK, so next function.

116
00:09:47,000 --> 00:09:50,000
In this case we have our hex digit.

117
00:09:51,000 --> 00:09:58,000
So again, create control then the hex desert is zero to F..

118
00:09:58,000 --> 00:10:12,000
So as I we don't continuous when I put it it will on when I put it also on and I put g it is off because

119
00:10:12,000 --> 00:10:14,000
our value is zero.

120
00:10:14,000 --> 00:10:20,000
One, two, three, four, five, six, seven, eight, nine a b c d e f hex this.

121
00:10:21,000 --> 00:10:24,000
OK, so this is how you can use this one, this function.

122
00:10:25,000 --> 00:10:28,000
Then we have our digit.

123
00:10:28,000 --> 00:10:30,000
It is from zero to seven only.

124
00:10:30,000 --> 00:10:38,000
So again, greater control you can check true only when the value is between zero to seven.

125
00:10:38,000 --> 00:10:44,000
So when I put it over here, it is off when it is seven.

126
00:10:44,000 --> 00:10:45,000
OK.

127
00:10:45,000 --> 00:10:52,000
It is on so you can find out any octal hexadecimal or decimal using these functions.

128
00:10:52,000 --> 00:11:01,000
So this is how you can use comparison Belad and this is the express we placed in comparison Pallett

129
00:11:01,000 --> 00:11:05,000
or here you can use this function over here.

130
00:11:05,000 --> 00:11:11,000
We if we want to compare any two with forms, you can use this.

131
00:11:11,000 --> 00:11:19,000
OK, so these are the how you can compare like datapoints time span, time between points, time of

132
00:11:19,000 --> 00:11:20,000
datapoint, single name.

133
00:11:21,000 --> 00:11:25,000
So I take our example if they function.

134
00:11:27,000 --> 00:11:32,000
And in this over here is I would hope, and over here is our constant value.

135
00:11:32,000 --> 00:11:35,000
So I just take.

136
00:11:37,000 --> 00:11:42,000
I just cleared and director, you can get away from also over here.

137
00:11:43,000 --> 00:11:46,000
So over here I'm going.

138
00:11:48,000 --> 00:11:48,000
Control.

139
00:11:50,000 --> 00:11:55,000
And this is the result, it is in the form of BlueNotes also.

140
00:11:56,000 --> 00:12:00,000
So you can use graph indicator or an indicator.

141
00:12:00,000 --> 00:12:01,000
But in this case.

142
00:12:04,000 --> 00:12:12,000
So I just put five in this and five in this, and when I hit on, it will generate up to function.

143
00:12:13,000 --> 00:12:20,000
OK, so this is how you can use or I can take another example like.

144
00:12:22,000 --> 00:12:34,000
I just create a sine wave, so I just go to express my and over here we have to do some later signal.

145
00:12:38,000 --> 00:12:40,000
So I just take a sine wave.

146
00:12:43,000 --> 00:12:45,000
And again, covid.

147
00:12:47,000 --> 00:12:53,000
So this is a sine wave, I guess, to go to compare it over here.

148
00:12:54,000 --> 00:12:58,000
I want to check it is equal to or not according to data points.

149
00:12:58,000 --> 00:13:00,000
So just put OK.

150
00:13:02,000 --> 00:13:02,000
This.

151
00:13:05,000 --> 00:13:08,000
And over here, I just Beike.

152
00:13:10,000 --> 00:13:12,000
Are four indicators in this case.

153
00:13:14,000 --> 00:13:15,000
So then I don't understand.

154
00:13:18,000 --> 00:13:20,000
So it will generate values in between.

155
00:13:21,000 --> 00:13:22,000
OK, our.

156
00:13:23,000 --> 00:13:27,000
In place of or when I hit on continuous.

157
00:13:29,000 --> 00:13:38,000
Again, it will generate Samila basically takes the plane to a loop, according to data points from

158
00:13:38,000 --> 00:13:38,000
021.

159
00:13:39,000 --> 00:13:40,000
And when I put.

160
00:13:41,000 --> 00:13:51,000
Or when I change the value from zero to one, so the comparison is like hundred.

161
00:13:54,000 --> 00:13:58,000
And when I don't done the same cases there.

162
00:14:00,000 --> 00:14:02,000
There is little.

163
00:14:04,000 --> 00:14:08,000
But we got one result per data points, it will check one result for data point.

164
00:14:08,000 --> 00:14:13,000
OK, so when in place of graph, when I use.

165
00:14:15,000 --> 00:14:17,000
An American alligator in this case.

166
00:14:20,000 --> 00:14:21,000
So it will give me.

167
00:14:22,000 --> 00:14:25,000
One, because both the values are the same.

168
00:14:25,000 --> 00:14:28,000
And when I change the sine wave to cause wave.

169
00:14:30,000 --> 00:14:31,000
Or squaresville.

170
00:14:33,000 --> 00:14:41,000
In that case, I know you don't run, but get zero because the sine wave is not equal to squared away.

171
00:14:41,000 --> 00:14:47,000
So this is how you can use this comparison palette and Leffew.

172
00:14:48,000 --> 00:14:49,000
Thank you.

