Conditional evaluation is done using an if
expression. The value of an if
expression is that of the branch whose condition evaluated to true
:
if
expressions can have any number of branches:
Comparing values is done using the =
operator:
Lists are values that have unique identity, so two separate lists that happen to contain the same values are not the same: