Hello
I have a stupid question with a stupid error this is my code:
if ( svSetupType != "SERVER") || (svSetupType != "SERVER_MIN") then
Label_9_Country:
nResult = DialogShowAskOptions();
if (nResult = BACK) goto Label_7_Rep;
endif;
if I have svSetupType = "SERVER" my code is executing what is in the if:
nResult = DialogShowAskOptions();
For me if svSetupType = "SERVER" or svSetupType != "SERVER_MIN" then it should not execute what in the if
Thanks for your help
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
If statement
Started by
Submit
, Feb 16 2004 15:18
1 reply to this topic
Posted 16 February 2004 - 17:11
the use AND to combine the conditions.
if svSetupType is SERVER, one condition says "no", the other one says "yes", and no or yes gives yes, so DialogShowAskoptions() is run.
use
if svSetupType is SERVER, one condition says "no", the other one says "yes", and no or yes gives yes, so DialogShowAskoptions() is run.
use
CODE |
if ( svSetupType != "SERVER") && (svSetupType != "SERVER_MIN") then |
to avoid this
Edited by Perotin, 16 February 2004 - 17:12.
Gruß / regards
Thomas
Thomas