Pneumatic Values

Is there a way to check piston values? I think I heard on the forum few months ago that pistons return either 1 or 0, but I’ve looked in the API and don’t see a function that returns pneumatic values. I tried searching it up on the forum, but it just shows other forums not relating to piston values.

It is piston.value()