Corrected the Start() method so that setup(){} and loop(){} has to be done. If-statements work correctly now.