I have this code in my controller on ionic app
// Shows test score to the user
alertPopup = $ionicPopup.alert({
title: user + message,
template: 'Your score: ' + testScore + '%',
okText: Paid ? 'View test results' : 'Close'
});
i need to add an if where the message change if testScore var is > 50. But i'm a beginner in ionic or angular js... Can any good guy give me help?