C
C#•10mo ago
LESZEK

help

why is doesn't work
No description
39 Replies
SinFluxx
SinFluxx•10mo ago
what is the type of name and what is the type of 5?
LESZEK
LESZEK•10mo ago
name its string 3 is int
SinFluxx
SinFluxx•10mo ago
right (I assume you mean 5 not 3) - so it can't compare them because they're different types
Thinker
Thinker•10mo ago
(btw you probably want to use == instead of is)
SinFluxx
SinFluxx•10mo ago
hint: hover your mouse where there are squiggly lines
LESZEK
LESZEK•10mo ago
and how to transform int to string
Thinker
Thinker•10mo ago
To be clear, you want to check whether name is the string 5?
LESZEK
LESZEK•10mo ago
no i want write cod, if I write 5 in cosole ,console write "siema" its dont work but] but i don write "
LESZEK
LESZEK•10mo ago
No description
LESZEK
LESZEK•10mo ago
now its working
SinFluxx
SinFluxx•10mo ago
It might look like it's working, but try entering something other than "Aleks"
LESZEK
LESZEK•10mo ago
its working
LESZEK
LESZEK•10mo ago
No description
SinFluxx
SinFluxx•10mo ago
no don't change your code, just enter something different in the console
LESZEK
LESZEK•10mo ago
but "23@#" its string oh ok
Want results from more Discord servers?
Add your server