If command error

Submitted by Kashminder on Tue, 06/01/2021 - 14:50

I am using a If command (if "${b} <= ${bod1}" then "variable bod1 equal v_b") and getting an error (Compute used in variable between runs is not current. Use the update_on_run_end option for computes to avoid this.) I am trying to define update on run. when i try to do that they say illegal variable command. how and where to define update on run in variable defined in if command. I have defined variable like this (variable bod1 equal 1e-5) (variable b equal c_kash[1] ) (compute kash all property/atom z ). Can you please help me editing these commands to get rid of an error.

Thanks
Kashminder