In order to give more control over the text for key entries template control words are available. Template control words begin with %. To explain how they work here is an example;-
%if text1 == text2 %endif 'template text 1' %else 'template text 2' %endelse
The words %if, %endif, %else and %endelse are control words.
Between %if and %endif there must be two text elements separated by two equals signs. If the two text elements are equal after any variable text has been substituted, then the text on the following line before the %else statement is used as the template text. Otherwise, the text on the line following %else and before %endelse is used.
Below is an example where the %if .. %endif .. %else .. %endelse syntax is used to simplify the key entries for stitches when both the right row and wrong side values are the same;-
See https://www.stitchmastery.com/tag/text-templates for more information.