The word Condition is a keyword, which triggers certain effects when the Exam Builder generates the exam. Chapter 3EBsource.tex explains more about keywords.
itbpF42.875pt18.125pt4ptex3.wmfCondition: (ab≠0)
This condition specifies that neither a nor b can equal 0. The Exam Builder will reject a randomly generated value of 0 for either variable.
itbpF42.875pt18.125pt4ptex3.wmf
This simple example shows how you can combine definitions, random number functions, and conditions to generate suitable variable values for your questions and answers.
a : = rand(10)
b : = rand(10)
c : = a + b
Condition: (a≠b)
This condition specifies that a and b cannot be equal. The Exam Builder will reject a randomly generated value for b if it is the same as the value already generated for a.
itbpF43.125pt18.5pt4ptex3.wmfHere is a condition that is very hard to satisfy:
a : = rand(1000000)
b : = rand(1000000)
Condition: (a = b)
This condition will not be satisfied very often because what are the chances that two numbers selected at random from the specified range will be equal?