Forums » Technology » Flight Sim Controllers » Control Manager (CH Products) » Doing something based on current mode Active Topics You are not logged in. [Log In] [Register User]
Page 2 of 2 < 1 2
Topic Options
Rate This Topic
Hop to:
#3433875 - 11/14/11 02:10 PM Re: Doing something based on current mode [Re: WileECoyote]
OlafM Offline
Member

Registered: 12/07/10
Posts: 140
Hi WileECoyote,

Concerning
Originally Posted By: WileECoyote
But I'm getting the error: "Bit value expected but CURRENTMODE found"...


The error appears because you forgot to wrap the numeric comparison with brackets. Like this:
Code:
if ( [ CURRENTMODE == MODE1 ] ) then
...
endif


CMS just works a little different than "normal" programming languages.


Top
#3434185 - 11/14/11 08:53 PM Re: Doing something based on current mode [Re: WileECoyote]
WileECoyote Offline
Member

Registered: 01/09/11
Posts: 503
Loc: Argentina
Oh, that's great. Thanks OlafM!
_________________________
Just like the real Wile E., more problems that solutions lately.

Top

Page 2 of 2 < 1 2
Topic Options
Rate This Topic
Hop to:

Moderator:  531 Ghost, RacerGT 
 

Forum Use Agreement | Privacy Statement
Copyright 1997-2013, SimHQ Inc. All Rights Reserved.