set_var_state: Set the attribute for the health state
Description
Set the attribute for the health state
Usage
set_var_state(state, var, new_value)
Arguments
state
object of class health state
var
attribute of the health state
new_value
new value to be assigned
Value
modified health state
Details
After checking the given state is a health state
the value of the variable is set
if the value is not numeric, it is being parsed to form an expression