我正在开发一个应用程序,用户在该应用程序中获得总分,并根据该分数进行判断并给予标题。但是,使用我使用的代码,最终结果始终是相同的,无论该主题获得什么分数。我不知道这是数学问题还是代码问题,因为它总是出现第一个选项:你没有任何 SWAG ......
if (totalScore<24) {
describe.text = @"You have no SWAG whatsoever...";
}
else if (25<totalScore<49) {
describe.text = @"You seem to be new to SWAG.";
}
else if (50<totalScore<74) {
describe.text = @"You have a bit of SWAG, not enough though.";
}
else if (75<totalScore<99) {
describe.text = @"You definately have SWAG!";
}
else if (totalScore == 100) {
describe.text = @"You are a GOD of SWAG.";
}