What is the difference between these two statements? (if any)


#1

So upfront I SUCK at webcore- only used it a few times because it kicks my butt every time.
My knowledge is very limited so be nice. :slight_smile:
Trying copy a piston from a post that must be assuming you understand it all and there is no way to duplicate it because the person did not give the info needed to do this

Anyway…

  1. is there any difference in these 2 lines:
    do X1 Set variable {on} = false;
    vs.
    X1 Set variable {on} = false;

Top one is mine, 2nd one is from the post. I can’t figure out how to not get the “do” to show up.
May not make any difference, maybe it is just the way he copied it or I have something clicked he did not? IDK.

Thanks for answering what I am sure is a very easy fix/ question.


#2

No difference at all. If you add that task to a piston in a new action it has the form:

with
  location
do
  set variable {on} = false
end with

There location is really just a placeholder to maintain the structure of the action if you aren’t working with devices. When you save it you’ll see the action presented as just:

do set variable {on} = false

When you come out of edit mode it gets even more terse:

set variable {on} = false


#3

Thanks so much. I assumed so but was not sure!