OS dependent import
              in 
             Integration and Hardware 
              •  
              2 months ago    
            
 
           
             Hi!
            
            
I'm new here so excuse me if I didn't select the right forum for my question.
            
I want to do a processing program which can be used both on Windows and Android. The problem is that the librairies I will import will depend on the OS on which the program is running.
            
I found how to know on which OS the program is running so I tried a simple "if(OS=windows)..." expression but "if" seem to be not allowed outside the setup function.
            
Would someone have an idea on how I could do that?
 
           
 
            
           I'm new here so excuse me if I didn't select the right forum for my question.
I want to do a processing program which can be used both on Windows and Android. The problem is that the librairies I will import will depend on the OS on which the program is running.
I found how to know on which OS the program is running so I tried a simple "if(OS=windows)..." expression but "if" seem to be not allowed outside the setup function.
Would someone have an idea on how I could do that?
 
              
              1  
            
 
            