I have a rule as follows:

What I have found is that even when I have the text "D1" in my description before manually invoking the rule, the correct comment is not added. The audit log confirms that it was present.
I'm assuming this is because all the "if/else" rules run concurrently, thus are open to race conditions? This means the add-command at the end runs before the smart variable is set by the first if/else
Is there a way around this?