Wolfwood Posted April 19, 2003 Share Posted April 19, 2003 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.