You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<control_sttag="on">on Control Structure</control_st>
</references>
<history>
<introducedversion="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<summary><glossarytag="return">Returns</glossary> a list of all built-in <glossarytag="command">commands</glossary> in <glossarytag="LiveCode">LiveCode</glossary>.</summary>
<examples>
<example>the commandNames</example>
<example>if field "Name" is among the lines of the commandNames then exit repeat</example>
</examples>
<description>
<p>Use the <b>commandNames</b> <control_sttag="function">function</control_st> to check whether a particular <glossarytag="command">command</glossary> already exists in <glossarytag="LiveCode">LiveCode</glossary>, to avoid using a <glossarytag="reserved word">reserved word</glossary> for your own custom <glossarytag="handler">handlers</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>commandNames</b> <control_sttag="function">function</control_st> <glossarytag="return">returns</glossary> a list of <glossarytag="command">command</glossary> names, one per <keywordtag="line">line</keyword>.</p><p/><p><b>Comments:</b></p><p>The <b>commandNames</b> <control_sttag="function">function</control_st> <glossarytag="return">returns</glossary> all the <glossarytag="command">commands</glossary> that can be used in <glossarytag="LiveCode">LiveCode</glossary>, including synonyms.</p>