AGG Software Forums

Online Help Center => Data loggers and plug-ins => Topic started by: suprsnipes on June 02, 2009, 07:34:01 AM



Title: Expressions Plugin
Post by: suprsnipes on June 02, 2009, 07:34:01 AM
Hi,

As I am not familiar with the correct terminology I am having some trouble using the expressions plugin and I was hoping to get some help.

This is what I am trying to achieve.

I want to show true or false if the following Variable is met.

Conditional: IIF
Variable: TYPE
Operator: =

in this case IIF(`TYPE`='N',true,'false')

I have also tried it like this;

IIF(TYPE=N,true,false)

But can't seem to get it to work. If you can please provide an example with my variables above so I can get this working...





Title: Re: Expressions Plugin
Post by: Arthur Grasin on June 02, 2009, 07:49:14 AM
Please, try

RESULT = IIF(TYPE='N','Y','N')

Please, note, that IIF function can't return a value with the boolean type. You should change your expression to

RESULT = (IIF(TYPE='N','Y','N') = 'Y')

or simplify it

RESULT = (TYPE='N')