Skip to content

Instantly share code, notes, and snippets.

@AnkurVyas-BTC
Created July 24, 2016 08:08
Show Gist options
  • Save AnkurVyas-BTC/71ec0ca90652817495a83934a53ca590 to your computer and use it in GitHub Desktop.
Save AnkurVyas-BTC/71ec0ca90652817495a83934a53ca590 to your computer and use it in GitHub Desktop.
How to set variables with if else.
variable_result = if condition_1
a
else_if condition_2
b
else
c
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment