Knowing the current mode "Programmatically "

Hi, I have a set of variables whose values should change depending on whether I am running the sketch in Java Mode or Android Mode. My current work around is to declare these variables twice and to comment/uncomment the ones I needn't/need.

Is there a built-in boolean that I could include in my sketch to determine whether I am in Java Mode or Android Mode?

Thanks.

Comments

  • Even if there isn't a built-in boolean, wouldn't it be easier to just supply your own? That way you only need to make the change in one place, instead of commenting/uncommenting a bunch of different places.

  • Yes, I thought about it after asking the question, but still wanted to see the answers. Thanks.

Sign In or Register to comment.