You can use the logical AND operator (&) to combine two comparison operations, and then use an if statement to execute code only when the condition is true. Here's an example:
main.m190 chars10 lines
In this example, the code will output g does not satisfy the condition because g is greater than 32 but not less than 32.3. If you change the value of g to be between 32 and 32.3, the code will output g satisfies the condition.
gistlibby LogSnag