You are looking at a healthmax limit code

if $blah's health < $blah's healthmax then capit else end;

##capit:
set $blah's health to $blah's healthmax;