The online racing simulator
[HELP] Error compiling
I have come to ask you for help since I have not used Visual Studio for a long time and wanted to know how I can solve the following image error



Thanks in advance !
What does this have to do with VS? This is about simple logic.

You're comparing the variable 'components' with null. You can't do that. You can however say this.components > 0 (or an other number). Is that what you're going for?

Read the error message, I'm pretty sure it says exactly what I say, even in your own language. Wink
I don't know the code you're working with but it looks like "components" is an object of "IContainer" type. AFAIK in C# a variable that refers to an object can be either "null" (object does not exist) or not null (the variable references an object). You can do only "someObject == null" or "someObject != null", anything else does not make sense.

FGED GREDG RDFGDR GSFDG