#ifdef multiple parameters

I am getting the following error :slight_smile:

C:\Users\Owner\Documents\1 Cypress\1 Dana Projects\1 - Total Fire Alarm Master Project\FireAlarmMasterProject\FireAlarmMasterProject.ino:979:21: warning: extra tokens at end of #ifdef directive
979 | #ifdef JIMSHOPALARM || JIMHOMEALARM || JIMCABINALARM

#ifdef JIMSHOPALARM || JIMHOMEALARM || JIMCABINALARM
  SMSphonenum1    = "0016034383337";
  SMSphonenum2    = "0016036821559";
  IFTTTKey        = "dM5SwLX8sPQFm204nC9cEr";
#endif

I also tried parameters as () like "#ifdef defined(JIMSHOPALARM) || ....." 
and that did not fly either.

ESP8266, IDE 2.3.6

Regards, Dana
#if defined JIMSHOPALARM || defined JIMHOMEALARM || defined JIMCABINALARM

You cannot use the short form if you combine several queries

2 Likes

Your topic does not indicate a problem with the IDE and therefore has been moved to a more suitable location on the forum.

I have tried these variants, all error

#ifdef JIMSHOPALARM || JIMHOMEALARM || JIMCABINALARM
#ifdef defined JIMSHOPALARM || defined JIMHOMEALARM || defined JIMCABINALARM
#ifdef defined(JIMSHOPALARM) || defined(JIMHOMEALARM) || defined(JIMCABINALARM)

#if defined

(post contents deleted by owner) - discourse would not let me delete the post (too many deletions... must wait five hours)

Thx, works like a charm.

Regards, Dana.

I told you what's wrong already in post #2 ...

1 Like