FANDOM



:boolean and boolean

This statement evaluates to true only if both booleans evaluate to true.

Location Edit

  • TEST (2nd MATH)
  • LOGIC
  • 1:and

Example Edit

:ClrHome
:Input "NUMBER:", X
:If X>5 and X<10:Then
:Output(2,1,"IT IS BETWEEN 5 AND 10
:Else
:Output(2,1,"IT IS NOT BETWEEN 5 AND 10

In this program, the user inputs a number. If the number is higher than 5 and less than 10, the program will display "IT IS BETWEEN 5 AND 10". Otherwise, the program will display "IT IS NOT BETWEEN 5 AND 10"

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.