Loading...

if else - part 2

True or false?

BOB3 should be used to discover the truth, again!

Now we’re going to lean another form of truth:

In the example before we tested to see if the numbers were equal.
Yet now we’re going to test and see if they are larger or smaller.

3 > 1

> means “larger then”

3 > 1 ist wahr

1 > 4 ist falsch

Compile the program and test it on your BOB3.

100 > 1000

Compile the new program and test it on your BOB3.

What happens now?

100 < 1000

Compile the program and test it on your BOB3.

What happens now?

100 != 1000

What colour are BOBs eyes now?

Compile the new program and test it on your BOB3.
1: True or false: 5 < 4
2: True or false: 5 != 4
3: True or false: 5 != 5
4: True or false: 1000 > -1000
 You haven’t completed anything yet!
 Super, so far so good…
 Super, you got it all right!
 Sadly not correct…
 One answer is correct
 A couple are correct…