Link to home
Start Free TrialLog in
Avatar of gs_kanata
gs_kanataFlag for Canada

asked on

TCL How to check arrary key exist?

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?
SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gs_kanata

ASKER

Both "info exist" and "info exists" are allowed.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not complete answer and I was requsted to close this thread due to "too long" inactive.