© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
6 replies
MaGiiKx

✅ If statement.

Hi, im creating a program that takes users commands and executes them (it draws shapes lol). basically, my 'case: "if", doesnt recognise the comparison expressions. so for example, if user types in.


if 10 == 20,
rectangle 100 150 (this draws a rectangle with specified size)
endif.

because 10 doesnt equal to 20, it should not draw. it is not recognising the ifchecker.

https://hastebin.com/obemigutud.swift
Screenshot_2022-12-30_at_09.43.00.png
Hastebin: Send and Save Text or Code Snippets for Free | Toptal®
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ alternative to switch statement or if statements?
C#CC# / help
4y ago
✅ if statement help
C#CC# / help
2y ago