Conditional Branching

In informal terms, Conditional Branching occurs in a computer programme when based on a value, the programme jumps to a particular set of instructions. Its fundamental, you can find it in higher-level languages, but also down at the processor level in op-codes.

Tests

In most language, we have the conditions, these are Equality Operators.

  • -gt greater than

  • -igt greater than, case-insensitive

  • -cgt greater than, case-sensitive

  • -ge greater than or equal

  • -ige greater than or equal, case-insensitive

  • -cge greater than or equal, case-sensitive

  • -lt less than

  • -ilt less than, case-insensitive

  • -clt less than, case-sensitive

  • -le less than or equal

  • -ile less than or equal, case-insensitive

  • -cle less than or equal, case-sensitive

Last updated