105 Replies
changed it slightly
How do you set the value of a variable?
and how do you check if a value is equals to another value?
you just.. use =?
==..?
im trying to get it to return false if the email doesnt have a @ and a .
Correct
and check your code
ok
Read it out for yourself
also I suggest you check Microsoft documentation https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/selection-statements#the-if-statement
if and switch statements - select a code path to execute - C# refer...
The
if
and switch
statements provide branching logic in C#. You use if,
else and
switch` to choose the path your program follows.but apparently..
compare your if statement to what you wrote earlier
Setting the value versus comparing a value
all i did was add a space to else if and change the = to ==
And one more thing. Compare the example given in the microsoft documentation
Last thing
You have a character in your code that does not exist in the example
im ngl
i dont understand the documentation at all
i leant c# in 3 hours
for school
the basic basics ofc
Do you see any semicolons in the if-statement?
nope
huh