This page (revision-11) was last changed on 13-Jun-2014 17:05 by Albrecht Striffler

This page was created on 26-Oct-2012 10:15 by Joachim Baumeister

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
11 13-Jun-2014 17:05 2 KB Albrecht Striffler to previous
10 13-Jun-2014 17:04 3 KB Albrecht Striffler to previous | to last
9 13-Jun-2014 17:02 3 KB Albrecht Striffler to previous | to last
8 13-Jun-2014 16:43 3 KB Albrecht Striffler to previous | to last
7 13-Jun-2014 16:40 3 KB Albrecht Striffler to previous | to last
6 13-Jun-2014 16:40 3 KB Albrecht Striffler to previous | to last
5 13-Jun-2014 16:39 3 KB Albrecht Striffler to previous | to last
4 13-Jun-2014 16:28 2 KB Albrecht Striffler to previous | to last
3 07-Nov-2013 10:36 2 KB Albrecht Striffler to previous | to last
2 17-Dec-2012 14:10 2 KB Tim Baier-Loewenstein to previous | to last
1 26-Oct-2012 10:15 2 KB Joachim Baumeister to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 7 added one line
At line 8 changed 2 lines
{{{IF numerical question > 0
THEN "Average value?" = 20}}}
%%prettify
{{{
IF numerical question > 0
THEN "Average value?" = 20
}}}
/%
At line 13 changed 2 lines
{{{IF numerical question > 130
THEN choice question = increased}}}
%%prettify
{{{
IF numerical question > 130
THEN choice question = increased
}}}
/%
At line 24 changed one line
In the above example, the value for the numerical question ''Num. Mileage evaluation'' is defined by a complex formula (which calculates the fraction of the ''Real mileage per 100km'' and the ''Average mileage per 100km'' and then multiplies the resulting value by 100. Complex expressions like the above also always have to be defined inbetween brackets, as shown in the example.
In the above example, the value for the numerical question ''Num. Mileage evaluation'' is defined by a complex formula (which calculates the fraction of the ''Real mileage per 100km'' and the ''Average mileage per 100km'' and then multiplies the resulting value by 100. Complex expressions like the above also always have to be defined in between brackets, as shown in the example.
At line 35 changed 2 lines
!More?
For everything beyond this, there is an additional plugin available. But be careful, this extension is non-LGPL-licensed for comercial use: [Extended Expressions: Conditions and actions | Doc Expressions]
!More complex?
For everything beyond this, there is an additional plugin available. But be careful, this extension is non-LGPL-licensed for commercial use: [Extended Expressions: Conditions and actions | Doc Expressions]
!!Combining Rules
Using such rules, we often not only want something to happen if the condition is true (e.g. temperature <= 0), but also when the condition is false. We can of course always do this, by writing a second rule, using the negated condition of the first rule (temperature > 0). With d3web KnowWE, we provide the possibility, to just use the keyword ELSE, similar to how it is known and done in software engineering.
%%prettify
{{{
IF temperature > 0
THEN icy roads = Yes
ELSE icy roads = No
}}}
/%