View Full Version : Detecting a user's OS
Panther
10-02-2002, 03:47 AM
Before I start, I would just like to say that I'm not very bright !!!
Can someone please give me the correct code for the following...
IF user OS = Win95, 98 or ME
Do 'something'
ELSE
Do 'something different'
End IF
Derek
10-02-2002, 08:22 AM
You got it right there. Use:
<font color=blue> IF %IsWin95% OR %IsWin98% OR %IsWinME%</font color=blue>
Paste this in if you want:<font color=green>
<IR_ACTIONS_LIST>
<Action name="IF">
<Type>200</Type>
<Function>1</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Condition>%IsWin95% OR %IsWin98% OR %IsWinME%</Condition>
</Action>
</IR_ACTIONS_LIST></font color=green>
the rest is good
Panther
10-02-2002, 08:33 AM
Thanks Derek !!!
To be honest, I thought that I had to use 'OR', but I wasn't entirely sure ( I didn't think that I could use it more than once in the same line ).
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.