Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
Coordinate Dependent If Statements
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 1579228" data-attributes="member: 110816"><p>Your IF expressions are wrong. You are not checking the values, you are assigning them..<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>In programming languages, the following is how it works for the string [If one is equal to two, set name to "Mac"]</p><p></p><p>[CODE]</p><p>if (one == two) {</p><p> name = "Mac";</p><p>}</p><p>[/CODE]</p><p></p><p>A single "=" is used to assign, two "==" signs are used to check equality. Inequality is "!=" and so on..</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1579228, member: 110816"] Your IF expressions are wrong. You are not checking the values, you are assigning them..:) In programming languages, the following is how it works for the string [If one is equal to two, set name to "Mac"] [CODE] if (one == two) { name = "Mac"; } [/CODE] A single "=" is used to assign, two "==" signs are used to check equality. Inequality is "!=" and so on.. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
Coordinate Dependent If Statements
Top