On 06-01-2010, at 11:32, artur.bala wrote:
<your script>
genr series value = 1
if var1 > -15
values = 2
endif
</your script>
Trial 1:
-------------------------
<script>
nulldata 10
genr series values = 1
if var1 > -15
values = 2
endif
</script>
gives this error
The symbol 'var1' is undefined
error evaluating 'if'
Trial 2
------------------------
<script>
nulldata 10
genr series var1 = 0
genr series values = 1
if var1 > -15
values = 2
endif
</script>
gives your error message:
error evaluating 'if'
So I assume that your variable var1 is a series and not a scalar.
But I'm guessing since you have only given us a small part of your script.
If var1 is a scalar, then the script will work as expected.
Berend