<doc>
  <legacy_id>1656</legacy_id>
  <name>&lt;=</name>
  <type>operator</type>
  <syntax>
    <example><i>value1</i> &lt;= <i>value2</i></example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
  </classification>
  <references>
    <function tag="min">min Function</function>
    <operator tag="&lt;">&lt; Operator</operator>
    <operator tag="&gt;=">&gt;= Operator</operator>
    <property tag="caseSensitive">caseSensitive Property</property>
    <function tag="max">max Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Compares two <glossary tag="value">values</glossary> and <glossary tag="return">returns</glossary> true if the first <function tag="value">value</function> is less than or equal to the second <function tag="value">value</function>, false otherwise.</summary>
  <examples>
    <example>22 &lt;= 21</example>
    <example>3 &lt;= -3</example>
    <example>"a" &lt;= "a" </example>
  </examples>
  <description>
    <p>Use the <b>&lt;=</b> (less than or equal to) <glossary tag="operator">operator</glossary> to compare two numbers or to compare the alphabetical order of two <glossary tag="string">strings</glossary>.</p><p/><p><b>Parameters:</b></p><p>The operands <i>value1</i> and <i>value2</i> can be numbers, <glossary tag="literal string">literal strings</glossary> of <keyword tag="characters">characters</keyword> (<glossary tag="delimit">delimited</glossary> with <glossary tag="double quote">double quotes</glossary>), or any sources of <function tag="value">value</function>.</p><p/><p><b>Comments:</b></p><p>When comparing strings, the <b>&lt;=</b> <glossary tag="operator">operator</glossary> compares the two <glossary tag="value">values</glossary> <keyword tag="character">character</keyword> by <keyword tag="character">character</keyword>, using the <glossary tag="ASCII">ASCII value</glossary> of each <keyword tag="character">character</keyword>. For example, "a" comes before "b" in the <glossary tag="ASCII">ASCII</glossary> <glossary tag="character set">character set</glossary>, so the following are all true:</p><p/><p>  "a" &lt;= "a"</p><p>  "a" &lt;= "b"</p><p>  "ab" &lt;= "bb"</p><p/><p>If the strings are of different lengths, so that the trailing characters in one string are compared to missing characters in the other, the missing characters are considered to have lower value than any character. For example, "abc" &lt;= "ab" is false.</p><p/><p>If the <b>caseSensitive</b> <glossary tag="property">property</glossary> is true, the comparison between two <glossary tag="string">strings</glossary> treats uppercase letters as coming before lowercase letters. If the <b><property tag="caseSensitive">caseSensitive</property></b> <glossary tag="property">property</glossary> is false, the comparison is not <href tag="../glossary/casedashsensitive.xml">case-sensitive</href>, so "a" is considered equivalent to "A".</p><p/><p><img src="202654"/> <b>Cross-platform caution!</b> The synonym <font face="Symbol"><b/></font> can be used only on <glossary tag="Mac OS">Mac OS</glossary> and <glossary tag="OS X">OS X systems</glossary>. If you use a <property tag="script">script</property> containing the <font face="Symbol"><b/></font> character on a <function tag="openStacks">Windows</function> or <glossary tag="Unix">Unix system</glossary>, a <glossary tag="error">script error</glossary> may result. To ensure cross-platform compatibility, use the synonym <b>&lt;=</b> instead.</p>
  </description>
</doc>