I have an if statement with the following condition:
And the contents of my strings are:Code:if ((strstr(to_units, param_units))&&(param_units!=NULL)) { ... stuff ... }
to_unit = "RADIANS"
param_units= "" //param_units is empty
"Stuff" is still getting executed even though param_units is empty. How do I make it so that the statement won't execute if param_units is empty?