🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to know the array value exist or not?

User: "liangycc"
Altair Community Member
Updated by liangycc

Hi,

Thanks to all of you for your valuable time and efforts putting in helping others.

I have a easy array,like:
set line(0) 1

set line(1) 2

set line(3) 4

i can know whether the array line exists(use array exists line),but how can i know the line(2)(expect 0,1,3) is not in the array?

Because if i use the line(2),the program will break down.
Thank you very much!!!

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    Use array names line 2

    Or info exists line(2)

    User: "liangycc"
    Altair Community Member
    OP
    Updated by liangycc

    thank you very much!!