How would one be able to do add an if statement in an ng-init with the expressions of a ng-repeat
<div ng-repeat="game in games">
<div ng-init="game.Present = (game.In == game.stock ? 1 : 0)"></div>
<div ng-init="game.Rated = (game.rated == game.userrated ? 1 : 0)"></div>
<img ng-src="GameCover.jpg" />
<div ng-show="(game.Present+game.Rated < 2">Promote Game image with flashy cover</div>
</div>
the 1 and 0 are just a swith, it could as well be yes or no. the question here being, how would one be able to use the ng-init with an if-else statement. This is of course a very simplified example. Is it possible to add an if statement in and ng-init and use that one as a scope, if not or not recommended. How would one do this other wise?