# If

Source: https://help.malighting.com/grandMA2/en/help/key_key_if.html
This is grandocs, an unofficial mirror of MA Lighting documentation. For authoritative or safety-relevant information, cite the canonical page on help.malighting.com.

---
The key If is located in the command area on the left of the key At.

![](/img/grandma2/img_if-key_v3-2-dc981c.png)

_Location k__ey __If _

 

If the command line is empty,

- pressing If enters the [IfOutput keyword](/grandma2/key_keyword_ifoutput/) 

\[Channel]> IfOutput

 

- pressing If If enters the [IfActive keyword](/grandma2/key_keyword_ifactive/) 

\[Channel]> IfActive

 

- pressing If If If enters the [IfProg keyword](/grandma2/key_keyword_ifprog/) 

\[Channel]> IfProg

 

- pressing If If If If enters the [If keyword](/grandma2/key_keyword_if/) 

\[Channel]> If

into the command line. 

 

If the command line contains previous input, the If key toggles.

- Pressing If enters the [If keyword](/grandma2/key_keyword_if/) into the command line. 
- Pressing If again enters the [EndIf keyword](/grandma2/key_keyword_endif/) into the command line. 

\[Channel]> Store If Group 5 EndIf