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_st tag="on">on Control Structure</control_st>
</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><glossary tag="return">Returns</glossary> a list of all built-in <glossary tag="command">commands</glossary> in <glossary tag="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_st tag="function">function</control_st> to check whether a particular <glossary tag="command">command</glossary> already exists in <glossary tag="LiveCode">LiveCode</glossary>, to avoid using a <glossary tag="reserved word">reserved word</glossary> for your own custom <glossary tag="handler">handlers</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>commandNames</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a list of <glossary tag="command">command</glossary> names, one per <keyword tag="line">line</keyword>.</p><p/><p><b>Comments:</b></p><p>The <b>commandNames</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> all the <glossary tag="command">commands</glossary> that can be used in <glossary tag="LiveCode">LiveCode</glossary>, including synonyms.</p>