$CC_NUM

Eduardo Gamero
Eduardo Gamero Member Posts: 30 Member

Hello friends


Is it possible to assign different values ​​to the same cc number? That is to say...


on controller

If ($CC_NUM=3) "value 0"


end if


If ($CC_NUM=3) "value 1"


end if


If ($CC_NUM=3) "value 2"


end if


If ($CC_NUM=3) "value 3"


end if


end on


I need to assign different functions depending on the value but I don't know how to write it... 😅

Comments

  • paulhc
    paulhc Member Posts: 5 Member

    You might be able to use select()

    on controller
    	if ($CC_NUM = 1)
    		select(%CC[$CC_NUM])
    			case 1 to 1
    				{do task}
    			case 2 to 2
    				{do task}
    			case 3 to 3
    				{do task}
    		end select
    	end if
    end on
    

    I'm a beginner, but I think that might accomplish what you need, if I understand your post.

Back To Top