BeSly Software Solutions About yab About us Admin




Name:

and -- logical and, used in conditions

Synopsis:
if (a and b) 
while (a and b) 

Description:
Used in conditions (e.g within if, while or until) to join two expressions. Returns true, if and only if its left and right argument are both true and false otherwise.
Note, that logical shortcuts may take place.

Example:
input "Please enter a number" a
if (a>=1 and a<=9) print "your input is between 1 and 9"


Related: or, not, xor, eor