Answer:
if(soldYesterday > soldToday){
salesTrend = -1;
} else if(soldToday > soldYesterday){
salesTrend = 1;
}
Explanation:
The if/else statement is more explicit. The first if condition check if soldYesterday is greater than soldToday, if true, then -1 is assigned to salesTrend.
Else if soldToday is greater than soldYesterday, if true, then 1 is assigned to salesTrend.
Answer:
yo! but I'm a ex-mobile legends