Advertisement
3_2004-2005 Coding Standards #135857

SIMPLE way to reverse the value of a Boolean field

This is an extremely easy method of reversing the value of a Boolean value.

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
<font face="tahoma,verdana,helveica,arial" size=2 style="font-size: 8pt;">
If you have ever done this:<BR><BR>
IF someBoolean = TRUE THEN<BR>
   someBoolean = FALSE<BR>
ELSE<BR>
   someBoolean = TRUE<BR>
END IF<BR><BR>
Here's an easier method:<BR><BR>
someBoolean = NOT someBoolean.<BR><BR>
That's it... vote if you like.<BR><BR>
- Derreck
</font>
원본 댓글 (3)
Wayback Machine에서 복구됨