Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift Basics Swift Operators Assignment and Comparison

James Rimmer
James Rimmer
2,603 Points

Update required: greater than or equals to and lesser than or equals to.

Hi there,

I'm currently using Swift 4.1 in Xcode and it appears as though 'greater than or equals to' and 'lesser than or equals to' are actually recorded in Swift as two symbols side by side (e.g. >= and <=) rather than one symbol as shown in the video.

I'm new to Swift so I imagine those two comparison operators may have been single symbols in an older version of the language? At any rate, it looks as though the video needs updating.

James

1 Answer

Jeff McDivitt
Jeff McDivitt
23,970 Points

Hi James -

I am confused by your question the <= and >= signs have always been the same. Is that not how they are in the Video lesson?

James Rimmer
James Rimmer
2,603 Points

No, the video does not display the signs like that, so the video needs updating as there appears to be a space between the symbols in the video