It looks like I resolved my solution by replacing ${!statusOK} with ${!lastCommandOK} == false . Can you please explain to me two things if you have time:
-
Why did this fix my issue as I saw something regarding a [ ${BooleanVariable} == true on the forum.
-
By me adding in a goto label Command after the gotoif_v2 command is the best way to add multiple if_v2 statements within the same statement as it was extremely hard to program this way and could be prone to breaking if someone changes the order by accident?