Jump to content

isset?


Recommended Posts

  • 10 years later...

There is no such function, even in the mysterious help file. According to this theme

you need to use UBound and compare it with element index if you want something like "If isset($arr[12]) Then".

If _elementExists($avArray, 11) Then
    _ArrayAdd($parArray, $avArray[11])
EndIf

Func _elementExists($array, $element)
    If $element > UBound($array)-1 Then Return False ; element is out of the array bounds
    Return True ; element is in array bounds
EndFunc

 

Link to comment
Share on other sites

  • Moderators

@noissetfunction did you not notice this topic is 10 years old?! Rather than the help file being "mysterious" did it occur to you that a living, evolving language may have changed in all that time? In the future, please don't resurrect old threads, especially when not adding any value to the discussion.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...