tag:blogger.com,1999:blog-5512280456703842915.post5726924200908005750..comments2023-10-06T06:16:11.626-04:00Comments on REXXpertise: Boolean Switch-settingrexxheadhttp://www.blogger.com/profile/12578166996312186309noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5512280456703842915.post-66932961992821789182014-11-13T09:09:13.734-05:002014-11-13T09:09:13.734-05:00Of course, then you can't set all switches OFF...Of course, then you can't set all switches OFF as by <br /><br />sw. = 0rexxheadhttps://www.blogger.com/profile/12578166996312186309noreply@blogger.comtag:blogger.com,1999:blog-5512280456703842915.post-27273776215451680182014-11-11T15:54:52.585-05:002014-11-11T15:54:52.585-05:00Rather than use a stem variable for the switch nam...Rather than use a stem variable for the switch name, I use a variable name prefixed with a "?" as in the example below:<br /><br />/* REXX */ <br />A=1; B=1 <br />?C = (A = B) <br />SAY 'C=' ?C <br />IF ?C THEN <br /> SAY '!!! C = 1 !!!' <br />ELSE <br /> SAY '~~~ C = 0 ~~~' <br />Anonymoushttps://www.blogger.com/profile/14315459334806794731noreply@blogger.comtag:blogger.com,1999:blog-5512280456703842915.post-73182723280342953162013-08-19T11:53:50.651-04:002013-08-19T11:53:50.651-04:00I like the "variable = A = B" syntax as ...I like the "variable = A = B" syntax as well ... but I generate it as "variable = (A = B)" which makes it much more readable for the newbie. <br /><br />It is always great to meet a fellow REXXerAnonymousnoreply@blogger.com