powered by
Get the attribute for the health state
get_var_state(state, var)
modified health state
object of class health state
attribute of the health state
After checking the given state is a health state and given variable is defined in the health state, the value of the variable is returned
get_var_state(health_state("IT", 100, 0.4, 0, FALSE), "cost")
Run the code above in your browser using DataLab