Loading ...
Sorry, an error occurred while loading the content.

one line if else

Expand Messages
  • Hudson T Clark
    Ok I know I can do: print Hello if 1; But how could I do an if else in one line? I have been playing around with the syntax and haven t been able to figure
    Message 1 of 1 , Apr 30 12:59 PM
    View Source
    • 0 Attachment
      Ok I know I can do:

      print "Hello" if 1;

      But how could I do an if else in one line? I have been playing around
      with the syntax and haven't been able to figure it out =/.
    Your message has been successfully submitted and would be delivered to recipients shortly.