skip to main | skip to sidebar

johnfredadams - tech

Monday, March 17, 2008

Ruby if else syntax


print "The variable is " + (var == 10 ? "10″ : "Not 10″)
Posted by John Adams at 2:22 PM

No comments:

Post a Comment

Newer Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (3)
    • ►  July (1)
    • ►  March (1)
    • ►  February (1)
  • ►  2009 (1)
    • ►  December (1)
  • ▼  2008 (20)
    • ►  December (1)
    • ►  November (4)
    • ►  September (1)
    • ►  July (1)
    • ►  May (2)
    • ►  April (7)
    • ▼  March (4)
      • Password Validation
      • Wma player embedding example
      • Partial syntax
      • Ruby if else syntax

About Me

My photo
John Adams
View my complete profile