← Back to team overview

dhis2-devs team mailing list archive

Re: Fwd: Problem using d2:condition()

 

Hi Hasina,

okay. Can you tell us which result you expect? Also please include log
output.

regards,

Lars

On Fri, Oct 30, 2015 at 1:35 PM, ramaso hasina <hasina.ramaso@xxxxxxxxx>
wrote:

> Hi all,
>
> I've created a program with some program stages.
> When I create a program indicator using the function d2:condition,
> the result is not what I'm expected.
>
> Example in the expression field :
>   - d2:condition('1 > 0',1,0) => result "false".
>   - d2:condition('#{w7N4mScR2g6.Sv4bRYIiSHy} == true',1,0) => result
> "false" (#{w7N4mScR2g6.Sv4bRYIiSHy} having a "true" value)
>
> Need help.
>
> Thanks.
>
> Hasina.
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org <https://www.dhis2.org/>

References