You can also use non-integer types such as string. If multiple trigger values are specified in a when section, they may be of varying types – for example, both string and integers:
You can also use non-integer types such as string. If multiple trigger values are specified in a when section, they may be of varying types – for example, both string and integers:
When you need to take a variety of different actions based on the value of a single variable, multiple if..elsif tests are verbose and repetitive.
and &&
These operators evaluate the left-hand side then, only if the result is true, they evaluate the right-hand side; and has lower precedence than &&
or ||
This Example tell how not to use the and or operator as it does not give correct results every time.
An array with two sub-arrays - i.e. 2 'rows' each with 4 elements