Jump to content

Equality Operators


Wolfwood

Recommended Posts

For the sake of getting my 100th post I thought I would just remind everyone that when using equality operators in VEX that both sides should be of the same type.

This is a no brainer except that comparing ints and floats always bites me in the bum.

float foo = 1;

int bar = 1;

if (foo==bar) {

...

}

This will give the following error because they are different types.

"ERROR (1041) A value type of "void" cannot be assigned"

(Personally I think this message is useless.) <_<

jim.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...