They've seen a fair few different ways of manipulating a race but right up the top of this section we're
not going to go right up the top because it's pretty likely already.
We called it manipulating and comparing arrays.
That's what we're going to cover in this video is comparison operators will make a nice little hitting
comparison operators.
Beautiful.
That's how we spell operators.
Change it to markdown.
Now you might have seen comparison operators in python.
Well the good news is that in umpire race you can use those same comparison operators.
So let's have a look.
Let's get back our trusty a 1 in a 2 arrays.
Wonderful.
Let's try it out.
We want a one greater than a two.
What's this going to return it's going to return another array.
Because that's the fundamental data type of num pi.
Basically everything is an array an ending array.
It's gonna tell us whether each element in A1 is greater than each element in A2.
So I can see one is not created and one is equal to 1 One two is not greater than two it's a good two
three is not great and three point three because three point three is higher.
So let's have another look.
Let's go a one greater than or equal to A2.
Now we can see we've got some.
So we got some bullying data types been return in this array.
So maybe if we go ball array equals that ball array we want to see that and then we want to go type.
You know the type.
Let's see it anyway.
Type.
It's gonna be in the array
and then if we also wanted bool array D type it's gonna be data type ball.
So this array is full of both lanes here.
Wonderful.
So now we can see again we've got a one.
Let's try another comparison of just a simple Antigua a one greater than five.
Not false false false.
Let's go.
I won less than five.
True true true.
Wonderful.
We want to see if two arrays are equal.
We can use the equal then comparison operator.
That's a mouthful for me.
True true true that makes sense.
A1 equals A.
Wonderful.
We can see that the first two elements.
Oh let's go back down.
So we're not scrolling all the time.
A 1 another cell here a 2.
And we can see our element 0 is true element 1 is true.
And then the rest aren't equal.
Okay.
Now if you wanted to find more of these comparison operators we've just been through a few.
You can try out some of your own.
Let's look up the documentation.
None pi comparison operators logic functions.
Yeah let's have a look at this.
All any array contents.
There's a fair few here.
Less less equal.
Equal we can use these symbols here.
Okay so there's a fair few more that we can do.
But these the main ones that you'll need if you ever need to compare arrays you can use the exact same
symbols that you use in Python with NUM pi.
So that's gonna wrap up there manipulating and comparing a range section.
Let's go have a look at the next part you'll see in the next video.