This is the script:
var sr = new StreamReader(File);
var fileContents = sr.ReadToEnd();
var lines = fileContents.Split("
"[0]);
if (lines[0] != "Something") {
if (GUI.Button (Rect (...), lines[0])) {
...;
}
}
The Idea is that if lines[0] is equal to “Something” then nothing happens, if it says anything else, the button appears. The problem is that the button appears even if lines[0] is equal to “Something”, ive also tried !== but it doesnt work either, and if i put == or ===, even if it equals “Something” nothing appears, and if i put print(lines[0]) it says “Something”, i really dont know whats going on, please help me.