Skip to content

Instantly share code, notes, and snippets.

@omkz
Created August 11, 2012 09:30
Show Gist options
  • Save omkz/3323050 to your computer and use it in GitHub Desktop.
Save omkz/3323050 to your computer and use it in GitHub Desktop.
ruby unless statement
#!/usr/bin/ruby
x=0
unless x>2
puts "x is less than 2" #dieksekusi karena kondisi salah 0 tidak lebih besar dari 2
else
puts "x is greater than 2"
end
output :
is less than 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment