concept conditional statement in category ruby

This is an excerpt from Manning's book The Well-Grounded Rubyist, Third Edition.
Keep in mind that load is a method, and it’s executed at the point where Ruby encounters it in your file. Ruby doesn’t search the whole file looking for load directives; it finds them when it finds them. This means you can load files whose names are determined dynamically during the run of the program. You can even wrap a load call in a conditional statement, in which case the call will be executed only if the condition is true.
Conditional statements interact with other aspects of Ruby syntax in a couple of ways that you need to be aware of—in particular, with assignment syntax. It’s worth looking in some detail at how conditionals behave in assignments, because it involves some interesting points about how Ruby parses code.