Comparing strings problem

I have a function called getDirection() which gives me the direction of a character, it is either "north", "south", "east" or "west".. then i have another functtion which splits non cardinal directions into x and y components. For example, north west to "north" and "west".. now when i compare getDirection() with the x component of that complex direcction, it says its not equal.. but when i just write the x component as a string (Manually) it says it is equal! getDirection() is not equal to xDir getDirection() is equal to "west" xDir is "west" and the character is also facing west, ive checked for spaces alrdy
2 Replies
JavaBot
JavaBot2mo ago
This post has been reserved for your question.
Hey @Auralias! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
JavaBot
JavaBot2mo ago
Post Closed
This post has been closed by <@743072402702860358> for the following reason:
User left the server
Want results from more Discord servers?
Add your server