Relative Content

Tag Archive for rubyerblogical-operators

Why do Ruby ERB if statements set variables to nil?

I’m using ERB to generate a set of instructions with location data, and want to accept an offset in my input. When I try to check if that offset is present however, it sets it’s value to nil. If anyone can help explain what’s going on it’d be greatly appreciated!