I found some structured text code which contained this statement:
bHidden:= TRUE(*NOT _somevariable*)
I haven't seen TRUE() used like a function before, and I also haven't seen the enclosing asterisks * * before. What do they do?
TRUE()
* *
(sorry if this is a duplicate question, I don't know what words to use to search for this syntax)
https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_st_comment.html
it is a comment.
I guess it used to be NOT _somevariable and someone want it to always be true.
NOT _somevariable
Log in to post a comment.
I found some structured text code which contained this statement:
bHidden:= TRUE(*NOT _somevariable*)
I haven't seen
TRUE()
used like a function before, and I also haven't seen the enclosing asterisks* *
before. What do they do?(sorry if this is a duplicate question, I don't know what words to use to search for this syntax)
https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_st_comment.html
it is a comment.
I guess it used to be
NOT _somevariable
and someone want it to always be true.