Move the 'For' into the ternary