Send value to hardware from app based on an "if...then...else" condition

TBH, the Terminal widget would be my last choice. If it’s a number that you want to input then the Numeric Input or Step H/V widgets would be a far better choice.

Do you understand how to obtain the value from widgets attached to virtual pins, when that value changes?
It’s done using the BLYNK_WRITE(vPin) command, more info about working with virtual pins here:

Pete.