I want to use an {if:} command to adjust the default of a formtext field. I've tried nesting the if statement within the default tag, but I don't think I have the syntax right.
You can't use {if} in a setting, but you can use formulas. You can use this syntax in a formula: yes_value if condition else no_value to implement conditional logic.
For example:
{formtext: name=Merchant; default={={clipboard} if len({clipboard}) < 50 else ""}}