@jan12345 said in Store endstop status in a variable:
Is it possible to base a condition on the status of an endstop?
Yes:
if sensors.endstops[0].triggered G1 ... else G1 ...No need to use a variable unless you want to save the triggered state to use later.