If you need to know the state of a trigger, you’ll have to use the IN jack.
You could use a variable to store the state of the pedal:
X GT IN 100
Above, this checks if the IN jack’s value is greater than ‘100’ (as a threshold).
Then you would use a PRE to check if X is high like so:
IF X : //your conditional command//
You could add the above into 1 line, but then your command would have to be pretty short:
IF GT X 100 : //your short command//
Then just use an ELSE command afterward if you want to do something different when pedal isn’t depressed:
ELSE : //alternate command//