@commands are primarily used in formulas that are triggered by user action, such as in button formulas. it is possible to combine them with @functions, for example by making execution of an @command conditional on a field value.