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

@alope1 well repl.it will only run the main.swift file, so you may want to move the code from main2.swift to main.swift