RosettaCodeData/Task/Conditional-structures/BQN/conditional-structures-1.bqn

12 lines
565 B
BQN
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

If {𝕏𝕎@}´ # Also Repeat
IfElse {cTF: cFT@}
While {𝕩{𝔽𝔾𝔽_𝕣_𝔾𝔽𝔾𝕩}𝕨@}´ # While 1‿{... to run forever
DoWhile {𝕏@ While 𝕨𝕩}´
For {ICPA: I@ WhileC,PA}
# Switch/case statements have many variations; these are a few
Match {𝕏𝕨}´
Select {(𝕩)(1𝕩)@}
Switch {c𝕩 ma<˘21𝕩 (aC)m@}
Test {fn{CA𝕊e:CAE}´𝕩Fn@}