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 8 changed 2 lines
!! Setting a question's value
%%prettify
!! Basic example
At line 11 changed 2 lines
IF numerical question > 0
THEN "Average value?" = 20
IF numerical question > 0
THEN other numerical question = 20
At line 14 removed one line
/%
At line 16 changed one line
The above example presents a rule, that assigns the numerical value ''20'' to the (numerical) question ''Average value?'' in the case that "numerical question" is greater than 0.
The above example presents a rule, that assigns the numerical value ''20'' to the (numerical) question ''other numerical question'' in the case that "numerical question" is greater than 0.
At line 18 removed one line
%%prettify
At line 23 removed one line
/%
At line 31 changed 2 lines
{{{IF "Average mileage /100km" > 0 AND KNOWN["Real mileage /100km"]
THEN "Num. Mileage evaluation" = (("Real mileage /100km" / "Average mileage/100km") * 100.0)}}}
{{{
IF "Average mileage /100km" > 0 AND "Real mileage /100km" = known
THEN "Num. Mileage evaluation" = (("Real mileage /100km" / "Average mileage/100km") * 100.0)
}}}
At line 44 added one line
At line 47 removed 11 lines
!!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
}}}
/%