|
That is certainly the case in PHP for example, but if I recall correctly there are certainly situations in RPG where non '1' values will evaluate to false - but not a good idea to rely on it I'm sure but ... I just recall having to try to understand code where someone had set an indicator to either '1', 'A', or 'B' or some such.
Just ran a quick test and that appears to hold true for the current version of RPG IV - so in most cases at least RPG appears to be the reverse. i.e. True = 1 and False = not 'True.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.