Value-Boolean.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="BOOLEAN" role="nobrk">
  5. <title>BOOLEAN</title>
  6. <para><emphasis role="bold">BOOLEAN<indexterm>
  7. <primary>BOOLEAN</primary>
  8. </indexterm><indexterm>
  9. <primary>BOOLEAN value type</primary>
  10. </indexterm></emphasis></para>
  11. <para>A Boolean true/false value. <emphasis
  12. role="bold">TRUE</emphasis><indexterm>
  13. <primary>TRUE</primary>
  14. </indexterm> and <emphasis role="bold">FALSE<indexterm>
  15. <primary>FALSE</primary>
  16. </indexterm></emphasis> are reserved ECL keywords; they are Boolean
  17. constants that may be used to compare against a BOOLEAN type. When BOOLEAN
  18. is used in a RECORD structure, a single-byte integer containing one (1) or
  19. zero (0) is output.</para>
  20. <para>Example:</para>
  21. <programlisting>BOOLEAN MyBoolean := SomeAttribute &gt; 10;
  22. // declares MyBoolean a BOOLEAN Attribute
  23. BOOLEAN MyBoolean(INTEGER p) := p &gt; 10;
  24. // MyBoolean takes an INTEGER parameter
  25. BOOLEAN Typtrd := trades.trd_type = 'R';
  26. // Typtrd is a Boolean attribute, likely to be used as a filter</programlisting>
  27. <para>See Also: <link linkend="TRUE_FALSE">TRUE/FALSE</link></para>
  28. </sect1>