Hi danimorgo,
thanks for your help! Currently I got this:
|
Source code
|
1
|
if(Winkel GT 25, if(Winkel LT 50,set(layer[Haus_B].alpha,1),set(layer[Haus_B].alpha,0);); ,set(layer[Haus_B].alpha,0);)
|
This works fine, as expected. But if I add another button like this:
|
Source code
|
1
2
|
if(Winkel GT 25, if(Winkel LT 50,set(layer[Haus_B].alpha,1),set(layer[Haus_B].alpha,0);); ,set(layer[Haus_B].alpha,0);)
if(Winkel GT 100, if(Winkel LT 120,set(layer[Haus_A].alpha,1),set(layer[Haus_A].alpha,0);); ,set(layer[Haus_A].alpha,0);)
|
The second button gets completely ignored. If I put it into a seperate action and call both actions on viewchange it works. Why does the second button get ignored?
Also it is possible two combine two arguments instead of nesting two if's? And how do I format my code in the forum properly? Sry for newbie questions.
Kind regards