code comments in scripts

Moderator: Moderator Group

code comments in scripts

Postby pbisuser » Sun Dec 02, 2012 12:04 pm

Hi,

is it possible to write code comments in scripts, for example:

if Variable = Value
{
/* Here I will do something */
WDButtonClick,1
}
else
{
/* Here I will do something else */
WDButtonClick,2
}
pbisuser
 
Posts: 4
Joined: Wed Nov 07, 2012 6:26 pm

Re: code comments in scripts

Postby malkuth23 » Sun Dec 02, 2012 4:20 pm

I am almost positive that is not a problem.

If you are having problems with something related to your example it is most likely because the WDButtonClick script is a legacy thing and we now only use Custom Script Buttons.
Matthew Newman-Saul
Theatrical Concepts
mattns@theatrical.com
User avatar
malkuth23
 
Posts: 354
Joined: Tue Apr 20, 2010 7:14 pm
Location: New Orleans, LA

Re: code comments in scripts

Postby mkohler » Thu Dec 06, 2012 1:04 am

ive done this with no issues, and in scripts with hundreds of lines, so, comment away
mkohler
 
Posts: 15
Joined: Mon Nov 30, 2009 9:41 pm

Re: code comments in scripts

Postby Markus Zeppenfeld » Mon Dec 10, 2012 1:49 pm

Hi!

Everything not written correctly because of misspelling or intentionally in terms of comments will be ignored within the script list.
So you can use whatever characters you want to annotate things.

All these commands/lines will show up within the debugging tool (Pro/Ult) as they are not recognized as executable command.

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 19 guests