if[Not]History{<,=,>}XX=<action>
where XX refers to the position of the action in the history list. The most recently used action is at position '1'.
The History is the list of past actions that have been executed (up to 25) with the most recent action at position 1.
You can see your history list by going selecting Debugging - History from the minimap menu.
ifHistory1=curseElements
checks if curse elements was the last action performed.
ifHistory<10=curseElements
checks if curse elements was performed in the last 10 actions.
ifNotHistory<10=curseElements
checks if curse elements has not been performed in the last 10 actions.
Legend
<item> is a placeholder and the entire string including <> should be replaced with the appropriate value. [text] means text is optional. {option1,option2,option3} means one of option1, option2 or option3 must be chosen. Batteries not included. UnitId can be any valid UnitId sequence as described in http://www.wowwiki.com/UnitId. Capitalization of UnitIds is not important. e.g. player, pet, target, targettarget. If the UnitId is optional, player is assumed.