#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    france
    Posts
    35
    Rep Power
    15
    hi !

    easy one : how do you represent the booleans true/false ? is it just 1/0 ?

    for instance, if I have a function that has to return true or false because it is later used in an "if" control structure, what exactly should it return ???

    Thanx

    -
    J0f
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Ontario, Canada
    Posts
    498
    Rep Power
    18
    Using 1/0 as a boolean TRUE/FALSE would probably be your best bet, yes. It's a lot less typing than checking to see if it's TRUE or FALSE.

    ------------------
    To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

Similar Threads

  1. return form.input and NULL values
    By webblynx in forum PHP Development
    Replies: 4
    Last Post: March 10th, 2004, 11:36 AM
  2. Uploading Files
    By vivekjain in forum ASP Programming
    Replies: 0
    Last Post: February 16th, 2004, 11:21 PM
  3. help with an isGreater function
    By qiushiming in forum C Programming
    Replies: 18
    Last Post: February 5th, 2004, 08:23 AM
  4. Catching return values of an SP
    By Cesark in forum .Net Development
    Replies: 1
    Last Post: February 4th, 2004, 12:03 PM
  5. function returns berserk values for unknown reasons
    By c0ldshadow in forum C Programming
    Replies: 7
    Last Post: January 16th, 2004, 04:05 PM

IMN logo majestic logo threadwatch logo seochat tools logo