You're missing an "end" to close it off...
if var1 != nil
something
else
something else
end
You can also do something like this (which is easier if you have
multiple conditions)
case var1
when nil, "nil" # do this if var1 = 'nil' or var1 = nil
something
when 1, 3 # do this if var1 = 1 or var1 = 3
something
when 2, 4 # do this if var1 = 2 or var1 = 4
something
else # do this if var1 isn't any of the above
something else
end
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general