[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    RE: string in gnuplot
From:       "crawford" <crawford () arete ! com>
Date:       2001-10-25 16:22:38
[Download RAW message or body]

On Thursday, October 25, 2001 Lesmana Djayapertapa wrote:
>
> Can I ask a couple of questions please...
>
> 1. I can't seem to use the Equality expression == to compare
> strings or
> characters
> e.g. I have a file named 'test.gpt' that contains the line
> if($0 == "me")
> print "Hello You..."
> when I use the call command such as: call 'test.gpt' "me" ,
> it doesn't seem to
> work...
> any other ways to get around this please ?
>
> (at the moment i use integer instead string/characters to get
> around this, but
> surely using
> string/character would be easier...)
>
> 2. How do I delete undefined/defined  variables
> e.g. after I defined say x = 2.5, how do I delete x
>

1.  gnuplot does not have string variables, so you're stuck with your
integer scheme.

2.  I know of no way to delete a defined variable.  But I see no need to do
this -- maybe it's just my limited imagination.

Dick Crawford, aka crawford@arete.com

 - -
[[[[ to unsubscribe from info-gnuplot, send an email with body
unsubscribe info-gnuplot
to majordomo@dartmouth.edu
]]]]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic