Skip to content

Instantly share code, notes, and snippets.

@EminenceHC
Created April 2, 2015 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EminenceHC/48e9653d6d3c47695445 to your computer and use it in GitHub Desktop.
Save EminenceHC/48e9653d6d3c47695445 to your computer and use it in GitHub Desktop.
If statement inside another if statement?
if a.one == 1
if foo.one == 1 || foo.two == 1 || foo.three == 1
else
if bar.one == 1 || bar.two == 1 || bar.three == 1
end
# Do something
else
# Do something else
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment