Hello again, I am trying to make a rule with nested if statements. The goal is to make it possible to add 1, 2, or 3 medicines to a complete text. For example, if I add a medicine called Amoxicillin and press the OK button of Prompt User, it should paste the text with only that medicine. But if I press the Second Medicine button, it should open a new Prompt User to add the values of the second and so on for the third. I have two problems. The first is that after pressing the Second Medicine button, it immediately pastes the text. And the second is that the variable "Medication" seems not to change. It stays in the medicine that I put in the first Prompt User.
MEDICACION: Variables.kmmacros (5.0 KB)
My macro is 25MB then i can't upload but the link is: https://1drv.ms/u/s!AuC0881if1LwpG4pFRyHC1jNJrqC
THANK U FOR THE HELP.