match
statementif - else
. If the input is matched the statement block of the first matching branch will be executed and its last expression will be returned. The else
branch will be executed when there is no other matching branch.match
to have different values according to a condition.enum
values (variants) as branches by using the .variant_here
syntax: