MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/8d22564490d8

Conditional

A condition is a set of rules that can interrupt normal code execution or change it, depending on whether the condition is completed or not.

An instruction or a set of instructions is executed, if a specific condition is fulfilled. Otherwise, another instruction is executed. It is also possible to repeat the execution of an instruction, or set of instructions, while a condition is not yet fulfilled.

Learn more

General knowledge

Technical reference

Learn about it

Document Tags and Contributors

 Contributors to this page: bunnybooboo, PushpitaPikuDey, Jeremie, PetiPandaRou
 Last updated by: bunnybooboo,