A '''conditional assembly language''' is thata partsubset of an [[assembly language]] used to writeconditionally generate code; it can be used both in a [[Macro (computer science)|macrosmacro]] and in open code.
== Example ==
In the [[IBM]] conditional assembly language,<ref>{{Cite web|date=2015-06-11|title=Conditional assembly language|url=https://www.ibm.com/docs/en/zos/2.2.0?topic=SSLTBW_2.2.0/com.ibm.zos.v2r2.asma400/asmr1021181.htm|access-date=2021-08-29|website=www.ibm.com|language=en-us}}</ref> of the most[[IBM High Level Assembler]]{{efn|Much of the language derives from earlier assemblers in, e.g., [[OS/360 and successors]].}} (HLASM)), some important statements are:
* MACROGBLx, and MENDLCLx - used to startdefine and finish acompile-time macrovariables
* AIF, AGO, ANOP, AEND, AEXIT and MEXITAEXIT - used to control the generation of different assembly language statements, depending on the naturevalues of compile-time variables and, within macros, on the macro's supplied arguments.
* SETx - used to manipulate compile-time variables within the macro.