%ruleContext% + %ruleKey% > %ruleOutput% set(%optName% = %storeName% | %stringValue%)
The set command allows the content a store to be changed dynamically, either to a string value or to the content of another store, during use of the keyboard. Changing store content while using one application will change it for all applications until Keyman is closed or the keyboard uninstalled. If it is wanted to make the changed store content permanent, to become the default content when restarting Keyman, the set command should be followed by a save command.
+[CTRL ALT "1"] > set(opt1='1') +[CTRL ALT "2"] > set(opt1='2')
The reset keyword was introduced in Keyman 8.0.