i don't know how you have declared Pin0, but in PBP you should use variable.. not sure if BasicStamp/PicBasic work with PBP. anyways..

Code:
        MyPushButton VAR PORTB.0
        '
        '
        '
        '
        '
        '
        If MyPushButton = 0 then DoSomething
HTH