I am really baffled by this Velocity behaviour ...
The returned valued from the BaseXXX.java file for value A, B and C are
all int. However, only only condition for test B works, I tried:
#if ($entry.A < 0)
and
#if ($entry.A > 0)
both failed. This indicates that $entry.A is probably not even an integer
or numerical value. What is the type for return value like this? And why
does B work and not A ??
getting really confused here.
thanks for any help
michael
>
> all of your A, B, and C are in fact Integer, the java Object, so
> try
>
> #if ($entry.A.intValue() == 3)
> ....
> #end
>
> Eigen Technology Pty Ltd wrote:
>> Dear all,
>>
>> I have the following expression in one of my Velocity file:
>>
>> #foreach ($entry in $entries)
>> <tr>
>> #if($entry.A == 3)
>> #entryCell ($entry.Id)
>> #entryCell ($entry.A)
>> #entryCell ($entry.B)
>> #entryCell ($entry.C)
>> </tr>
>> #end
>> #end
>>
>> the comparison expression only works for $entry.B, neither $entry.A
>> nor $entry.C work, i.e. A and C return no result. All A, B and C are
>> int. I have tried to compare as number (3) and text ("3"), only
>> getting the same result. What is limiting the expression? Would
>> appreciate some hints.
>>
>> best wishes
>> michael
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <mailto:[EMAIL PROTECTED]> For additional
>> commands, e-mail: <mailto:[EMAIL PROTECTED]>
>>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]> For additional
> commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>