Write an if/else statement that compares the value of the variables soldYesterday and soldToday , and based upon that comparison assigns salesTrend the value -1 ( soldYesterday greater than soldToday ) or 1 .
i wrote:
if (soldYesterday > soldToday)
{
salesTrend = -1||0;
}
and its coming out incorrect, any ideas?