$execute if entity @a[tag=weight.active$(id),scores={gym_cancel=1..}] run return run function ws:misc/gym/weightdeactivate {id:$(id)}
$execute unless entity @a[tag=weight.active$(id)] run return run function ws:misc/gym/weightdeactivate {id:$(id)}
$execute as @p[tag=weight.active$(id)] if predicate ws:issneaking run function ws:misc/gym/weighthold {id:$(id)}
$execute as @p[tag=weight.active$(id),scores={weight.holdfor=1..}] unless predicate ws:issneaking run function ws:misc/gym/weightpush {id:$(id)}