Re: Rob Questions
- Posted by "Boehme, Gabriel" <gboehme at POBOXB1.HQ.MSMAIL.MUSICLAND.COM> May 12, 1999
- 536 views
Bernie Ryan wrote: > -- using version 2.1 > >What does the " with 744614121 " note mean at the bottom of some >include files. Um...directly above it should be this line: -- In Euphoria 2.1 this file (unless modified) is FREE - 0 statements. It's the "with" line that actually "tells" Euphoria that the include file is "free." >Why do I get the following error -- true/false condition must be an ATOM >for the following code excerpt. > > -- v is a sequence > >if v[i] != " " to > -- take some action >end if If you're looking for a single char, use single quotes around the space. However, if you're comparing string values, you have to change the "if" line to this: if not equal(v[i], " ") then -- or if compare(v[i], " ") != 0 then Remember, the double-quoted string " " is equivalent in Euphoria to the sequence {32}. If v[i] is an atom, then the expression v[i] != " " evaluates to {1} or {0}. This is why you're getting the error message requiring your condition to be an atom, because it currently isn't. You must use equal() or compare() for conditional logic involving sequences (or strings -- they're the same thing in Euphoria). Be seeing you, Gabriel Boehme ------ A false film might be refuted in a hundred books, without much affecting the million dupes who have never read the books but only seen the film. G.K. Chesterton ------