Hi,
Am I using the if and else if properly?
Thank you for your help,
Davo
Am I using the if and else if properly?
PHP Code:
setColorPriceBars(true)
setDefaultPriceBarColor(Color.white);
if (a>b)
{
setPriceBarColor(Color.green);
}
else if (e>f) //should this be else if or if??
{
setPriceBarColor(Color.red);
//if neither condition is met the bars default to white
}
if (s>y)
{
drawShape(Shape.UPARROW,.................);
}
else if (x>P) //again, should this be if or else if??
{
drawShape(Shape.DOWNARROW,...............);
}
//if neither condition is met no arrows are drawn
Davo
Comment