When a macro ($ in function) is executed, you could add a symbol like % witch will check for the new value. Exemple :
$say $(test)
data modify storage test:test test set value "b"
$say $(test)
In the chat, it show 2 time a. But if you remplace a $ with a another symbol it will check the current data. Exemple:
$say $(test)
data modify storage test:test test set value "b"
$say $(test)
Then it will show in the chat "a" and "b"
Please sign in to leave a comment.
0 Comments