Re: Small Problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Use:
  if atom(temp) then ...

the gets() function returns a sequence for data, and an atom for no
data.  Alternately, you can also do this to avoid the type-check errors
in the first place:
  if sequence(temp) then doodah = temp[1..n] end if

HTH,
Michael J. Sabal

>>> president at insight-concepts.com 06/25/02 05:09PM >>>

If I use:
 if temp=-1 then .ect..ect....   I get an error: true/false condition
must be an ATOM

Any suggestions from preventing the type_check error?

Thanks,
Chris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu