February 25, 20214 yr 12 minutes ago, larryllix said: The total value 2^6-1 (63) can trigger a program. Wouldn't need any boolishness on the right side of the logical trigger. If $sBitTotal = 63 Then .... Agreed. But if we can't test which bit is set or which bit is not set it's not any more useful to do it bitwise ...in the other posters example in this thread count 1 - 6 is no better than bitwise... if a program didn't run, or ran multiple times in either case that's not detectable efficiently using the tools we have. it could be ineffeciently done using more variables and more programs but at that point its not worth using the variable in a bitwise manner to begin with.
February 25, 20214 yr 1 hour ago, MrBill said: Agreed. But if we can't test which bit is set or which bit is not set it's not any more useful to do it bitwise ...in the other posters example in this thread count 1 - 6 is no better than bitwise... if a program didn't run, or ran multiple times in either case that's not detectable efficiently using the tools we have. it could be ineffeciently done using more variables and more programs but at that point its not worth using the variable in a bitwise manner to begin with. Sure to break it down you would require a program to break it into separate flags and then we may as well just keep them all separate and use a trigger program like: If $sVar1 AND $sVar2 AND $sVar3 AND $sVar4 AND $sVar5 Then ..... Not as boolean person pretty but it could work Edited February 25, 20214 yr by larryllix
Create an account or sign in to comment