Jump to content

If $var


Recommended Posts

  • Administrators

A variable is "true" if it is non-zero (if it's a number) and not blank (if it's a string)

False:

0

""

True:

1

10

-2

"hjkhk"

And

If $Var

is the same as saying "If $var is true"

Edited by Jon
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...