Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 52: Check if map contains value

See programming-idioms.org:

Code

Running Example

We can use the check code from above as the condition in an 'if' statement, but it needs to be enclosed in parentheses (otherwise the code in the following line would become part of the until-clause):

Alternatively, we could just add code after the until-clause and add an else-clause to the loop:

last changed: 2024-07-01