Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82391

CASE statement in Mendix

$
0
0

How do I write the following C# SWITCH / CASE statement in the Mendix Modeler?

 

var variable = "test";

var counter = 0;

switch (variable)

{

case "test":

counter++;

break;

case "testtest":

counter--;

break;

default:

break;

}

 

I understand that I can nest a series of exclusive splits but I have always found SWITCH / CASE to be much more readable and would like to reuse it in Mendix if possible.


Viewing all articles
Browse latest Browse all 82391

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>