Error

Submitted by Typoir on Thu, 01/22/2026 - 05:33

Hello everyone,

label loop_growth

run ${grow_every2}

variable curr_dia2 equal ${start_dia2}+step*${grow_rate_dia2}
variable new_z1 equal ${z1}+(${curr_dia2}-${start_dia2})/2
change_box all z final 0.0 ${new_z1} units box

if "${curr_dia2} > ${end_dia2}" then
"jump SELF done_growth"
else
"jump SELF loop_growth"
endif

label done_growth

from log.liggghts:
variable completed_growth2 equal ${curr_dia2} > ${end_dia2}
variable completed_growth2 equal 412.054 > ${end_dia2}
variable completed_growth2 equal 412.054 > 20
ERROR: Illegal variable command (../variable.cpp:383)

How can I fix the error?