Help with Stamina System

Show image of blueprint

You need to implement a clamp in-between your subtraction and set while sprinting

Like:
Stamina → int - int —> Clamp (integer) —> Set Stamina.

Can replace with floats too.