KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: If (MyBoolean= True)?
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: October 11, 2002
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Compatibility: Version 6.7.x and 6.8.x

How many times have you come across the following statement?

If (MyBoolean= True)
` Do stuff
End if

Well, if we consider that "MyBoolean= True" is valued either True or False, and that is is True only when MyBoolean is True, the same test could actually read:

If (MyBoolean)
` Do stuff
End if