Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Define "TRUE" as 1

Status
Not open for further replies.

CJason

Programmer
Oct 13, 2004
223
US
Is there a way to define the text "TRUE" to be interpreted as 1 and "FALSE" interpreted as 0? For example:
Code:
$a = "FALSE";
if (!$a) {
  print "IT IS FALSE\n";
}
In the above, I'd like it to print "IT IS FALSE\n";

Thanks!
 
Cool! That just might work for me!! Thanks for the pointer!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top