Help find shorter code

Page 1 of 1

1 Replies - 186 Views - Last Post: 30 November 2018 - 01:38 PM

#1 jleake   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 06-November 18

Help find shorter code

Posted 30 November 2018 - 01:34 PM

if(directory==4||directory==5||directory==6||directory==7||directory==8||directory==9||directory==11||directory>11) {
            system("clear");
            broadcast=1;
        }

Is there a shopter way to make this code work (directory is a intiger
Is This A Good Question/Topic? 0
  • +

Replies To: Help find shorter code

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15106
  • View blog
  • Posts: 60,410
  • Joined: 12-June 08

Re: Help find shorter code

Posted 30 November 2018 - 01:38 PM

This is not a 'Site Questions & Support'.

Please post in the correct language subforum.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1