Hubert Mackenberg | 16 Mar 2011 15:52
Favicon

Problems with simple expression evaluation


Hi,

I do not understand the result of some simple expression evaluation.
I have:

test.jam:

    VAR = "FALSE" ;

    if ! ($(VAR) = "TRUE")
    {
      echo "VAR is not TRUE" ;
    }
    else
    {
      echo "VAR is TRUE" ;
    }

    EXIT ;

If I run

      jam.exe -f test.jam

I get

      VAR is TRUE

But that's not what I expect. If I change the if statement to
(Continue reading)

Ingo Weinhold | 16 Mar 2011 16:36
Picon
Picon

Re: Problems with simple expression evaluation

Hubert Mackenberg <hubert.mackenberg <at> morpho.com> wrote:
> I do not understand the result of some simple expression evaluation.
> I have:
> 
> test.jam:
> 
>     VAR = "FALSE" ;
> 
>     if ! ($(VAR) = "TRUE")
>     {
>       echo "VAR is not TRUE" ;
>     }
>     else
>     {
>       echo "VAR is TRUE" ;
>     }
> 
>     EXIT ;
> 
> If I run
> 
>       jam.exe -f test.jam
> 
> I get
> 
>       VAR is TRUE
> 
> But that's not what I expect. If I change the if statement to
> 
>      if $(VAR) != "TRUE"
(Continue reading)


Gmane