Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The "!"
#2
if(a!b) ;;if a is not equal b

if(!a) ;;if a is 0

a and b can be variables or functions or other expressions. For example

if(!somefunction(1 2 3)) ;;if somefunction returns 0

More examples:

if(a) ;;if a is not 0

if(somefunction(1 2 3)) ;;if somefunction returns not 0


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)