2020-06-09 05:27 PM - last edited on 2022-09-26 10:53 PM by Daniel Kassai
2021-02-03 08:14 PM
2021-02-03 11:05 PM
if bManualDate = 0 then lock "stManualDate" hideparameter "stManualDate" endifFor on/off (boolean) parameters "0" is off and "1" is on. I personally don't like using the "0,1" values when writing my script because the idea of writing "=" for a boolean parameter bothers me, seeing as though it is only necessary for the off value; for example, if the value is on we simple write:
if bManualDate thenbecause bManualDate returns the positive value of 1
if not(bManualDate) thenbecause when it is turned off it equals "0", the negative response, so to run the "if" command we need a positive response so we turn it into a positive with the "not()" function as "not(0)" = "1". make sense?
if not(bManualDate) then lock "stManualDate" hideparameter "stManualDate" endifWriting it like this makes it easy to read what it is doing.
2021-02-04 02:02 AM
Kristian wrote:
if bManualDate then
/
if not(bManualDate) then
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2021-02-05 02:01 AM