Test/RiskModel: Difference between revisions
Appearance
Created page with "Test the <RiskModel> custom tag... <RiskModel name="t1" calculation="mother_fertility_rate">Your chance of getting pregnant is about {result} in 100.</RiskModel> <RiskModel name="t2" calculation="mother_fertility_rate*father_fertility_rate">Your chance of getting pregnant is about {result} in 100, per month.</RiskModel> Test some errors Missing name <RiskModel calculation="base_pregnancy_rate"></RiskModel> Missing calculation <RiskModel name="err1"></RiskMode..." |
(No difference)
|
Latest revision as of 20:38, 19 August 2025
Test the <RiskModel> custom tag...
RiskModel: Test/RiskModel:t1 Calculation: mother_fertility_rate Content: Your chance of getting pregnant is about {result} in 100.
RiskModel: Test/RiskModel:t2 Calculation: mother_fertility_rate*father_fertility_rate Content: Your chance of getting pregnant is about {result} in 100, per month.
Test some errors
Missing name riskmodel: missing name attribute
Missing calculation riskmodel: missing calculation attribute
Mis-matched parentheses: riskmodel base_rate*3)*factor/100: mismatched parentheses
riskmodel (base_rate*3)*father_rate/100): mismatched parentheses
Syntax errors:
riskmodel a & b: bad expression & b
riskmodel a b: Syntax error.