BeSly Software Solutions About yab Demos About us Admin


and -- logical and, used in conditions

if (a and b) 
while (a and b) 

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.

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