blizzedout Posted November 7, 2006 Share Posted November 7, 2006 is there any way to check if the varuable is set without the var being declared and not getting an error? noissetfunction 1 Link to comment Share on other sites More sharing options...
xcal Posted November 7, 2006 Share Posted November 7, 2006 Open the help file, click the Index tab, type in "is." How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
noissetfunction Posted November 15, 2016 Share Posted November 15, 2016 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 More sharing options...
Moderators JLogan3o13 Posted November 15, 2016 Moderators Share Posted November 15, 2016 @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 More sharing options...
Recommended Posts