Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Posts
    3

    Detecting a user's OS

    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

  2. #2
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244

    Re: Detecting a user's OS

    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
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  3. #3
    Join Date
    Oct 2002
    Posts
    3

    Smile Re: Detecting a user's OS

    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 ).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts