I'm making a data pack to help me when localizing projects.
When using the new dialog UI and capturing the input, I cannot figure out how to test this string against a fixed value (or if it is empty or not).
After passing the macro variable from the UI, I want to test whether the variable is blank or if it is a specific variable. I've tried a bunch of variations of the following, but without success:
$execute unless $(translate_key_front)=[blank] anchored eyes positioned ^ ^ ^ if block ~ ~ ~ #minecraft:all_signs run function localizehelper:encode_translate_front {translate_key_front:$(translate_key_front)}
$execute unless $(translate_key_front)="" anchored eyes positioned ^ ^ ^ if block ~ ~ ~ #minecraft:all_signs run function localizehelper:encode_translate_front {translate_key_front:$(translate_key_front)}
Thank you in advance for pointing me to what I'm missing in my syntax.