I can't seem to get this Ternary Operator correct

Need help figuring out what I am doing wrong and how to fix it. There's two files and I'm aware I can't run both of them, I'm using two so that I can compare.

You are viewing a single comment. View All

There is only one file.


@Vandesm14 sorry, I added my another file with the Ternary Operator that I created. main2.swift file.