Asked

How To Rem Out A Piece Of Code

Hello folks been awhile, But I haveĀ  a silly question and cant seem to find it.

Question is, when writing a script, say in Ez-script, if I want to "rem" outĀ  a line of code but not erase it, you usually can put a # in front of the command, but in Javascript, I thought it was a ; that does the same thing. This does not seem to be true. I'm gathering there is another symbol that is used instead? thats what I am trying to find out.

thanks so much:)


Related Hardware EZ-B v4
Related Control EZ-Script Console

ARC Pro

Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

PRO
Canada
#1   — Edited

In EZ-Script, you can comment out a line of code by using the "#" symbol at the beginning of the line. This will make the script ignore that line when it's running.

In JavaScript, you can comment out a line of code by using "//" at the beginning of the line. If you want to comment out multiple lines, you can use "/" at the beginning and "/" at the end of the section you want to comment out.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
#2  

Oh wow, great to know, thank you. Consider this closed:)