We help IT Professionals succeed at work.

TCL How to check arrary key exist?

gs_kanata
gs_kanata asked
on
1,909 Views
Last Modified: 2013-11-22
I have a two dimension arrary and want to check whether an element exist or not.

I have googled and got an answer to use "info exist array(index)". However, it seems to be not applicable to two dimension array, as I got error messages as
wrong # args: should be "info exists varName"

Any idea?
Comment
Watch Question

Qlemo"Batchelor", Developer and EE Topic Advisor
CERTIFIED EXPERT
Top Expert 2015
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Both "info exist" and "info exists" are allowed.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Not complete answer and I was requsted to close this thread due to "too long" inactive.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.