Jump to content

MrBeatnik

Active Members
  • Posts

    98
  • Joined

  • Last visited

Community Answers

  1. MrBeatnik's post in Biggest noob questions of the day.. sorry was marked as the answer   
    Not quite...
    You don't need the IFs - the CASE does the IF work for you.
    Switch $WindowSensInput Case 1 ;Checks if $WindowSensInput = 1 $ActualWindowSens = 0.031 Case 2 ;Checks if $WindowSensInput = 2 $ActualWindowSens = 0.222 Case 3 ;Checks if $WindowSensInput = 3 $ActualWindowSens = 0.333 ; Case n ;Checks if $WindowSensInput = n ; $ActualWindowSens = whatever Case Else ;Checks if $WindowSensInput = any other value not stated Msgbox(16,"Error","Your value is outside the range allowed") EndSwitch
×
×
  • Create New...