Hi,
                I am trying to use conditional statements in .pro file.
                I found in links that I can use if/else conditions, I can 
declare my own variable and use built in functions for comparison.
                In my case,  I wanted to have some specific config for 
Symbian^3 and some other config for Symbian^1. My code looks like -


      MY_VARIABLE var1 = $$SYMBIAN_VERSION
      MY_VARIABLE var2 = "Symbian3"

      if(isEqual(var1,var2))
      {
          #config1
            }

                But, when I run qmake for Symbian^1, function isEqual() still 
returns true.

                Message message($$SYMBIAN_VERSION), prints "Symbian3" for 
Symbian^3 and "Unknown " for Symbian^1.

                Unfortunately, if I check the general hardcoded unequal 
strings, then  also isEqual()returns true, like  -

      if(isEqual("Monday","Tuesday")) //returns true
      {
          #config1
            }

               Please let me know the proper way to use conditional statements, 
if I have done any mistake here. And any other way to put this thing.


Regards,
Manjunath K

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to