Home Segments Index Top Previous Next

165: Sidetrip

You can use the and: message to ensure that a parameter has been assigned a value before you evaluate an expression that depends on an assignment. For example, the following expression uses isNumber to ensure that the > test is evaluated only if a number has been assigned to x:

x isNumber and: [x > 1600]