I'm working with this code:
switch (PRef)
{
case (PRef >= C1):
Print("Ponemos a partir de la 1 orden");
EnterLongLimit(0, true,100000, C1, "Compra1");
EnterLongLimit(0, true,100000, C2, "Compra2");
EnterLongLimit(0, true,100000, C3, "Compra3");
EnterLongLimit(0, true,100000, C4, "Compra4");
break;
case (PRef < C1):
Print("Ponemos a partir de la 2 orden");
EnterLongLimit(0, true,100000, C2, "Compra2");
EnterLongLimit(0, true,100000, C3, "Compra3");
EnterLongLimit(0, true,100000, C4, "Compra4");
break;
break;
case (PRef < C2):
Print("Ponemos a partir de la 3 orden");
EnterLongLimit(0, true,100000, C3, "Compra3");
EnterLongLimit(0, true,100000, C4, "Compra4");
break;
}
But the condition in case doesn't works.
Could you help me?
Comment