MrBill Posted February 25, 2021 Posted February 25, 2021 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. Quote
larryllix Posted February 25, 2021 Posted February 25, 2021 (edited) 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, 2021 by larryllix Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.