Displaying text based on switches

Hey guys. I'm imagining this is an easy one, but since I don't know JS, I need to ask.

I'm using MOG_TimeSystem plugin. I modified it a bit to display the HUD as I wanted and now it looks like this:

http://picpaste.com/pics/1-Z7sIb5bJ.1512817229.png

This is the code I've butchered to achieve it:

//==============================
// * Draw Time Contents
//==============================
Window_Time_Status.prototype.draw_time_contents = function() {
var x = this.width - 130;
var y = 26;
// this.contents.drawText(Moghunter.time_word, 0, 0, 90,32);
// if (this.pm_mode) {var apm = " am";if ($gameSystem.hour() >= 12) {var apm = " pm"};
// this.contents.drawText($gameSystem.hour_pm() + ":" + $gameSystem.minute().padZero(2) + apm, x, 0, 90,32,"right");
// }
// else {
// this.contents.drawText($gameSystem.hour().padZero(2) + ":" + $gameSystem.minute().padZero(2), x, 0, 90,32,"right");
// };
if (this._mode === 1) {
// this.contents.drawText(Moghunter.day_word, 0, 0, 90,32);
var text = $gameSystem.day_week_name();
// + " " + $gameSystem.month().padZero(2) + "/" + $gameSystem.day().padZero(2);
this.contents.drawText(text, x - 60, y, 120,32,"center");
this.contents.drawText($gameParty._gold + "G", x - 60, y * 2, 120,32,"center");
var text = $gameSystem.month_name().padZero(2) + " " + $gameSystem.day().padZero(2) + ", " + $gameSystem.year();

this.contents.drawText(text, x - 60, 0, 120,32,"center");
}
else {
this.contents.drawText($gameSystem.day(), x, y, 90,32,"right");
this.contents.drawText(Moghunter.day_word, 0, y, 90,32);
this.contents.drawText($gameSystem.day(), x, y, 90,32,"right");
this.contents.drawText(Moghunter.day_week_word, 0, y * 2, 90,32);
this.contents.drawText($gameSystem.day_week_name(), x, y * 2, 90,32,"right");
this.contents.drawText(Moghunter.month_word, 0, y * 3, 90,32);
this.contents.drawText($gameSystem.month_name(), x, y * 3, 90,32,"right");
this.contents.drawText(Moghunter.year_word, 0, y * 4, 90,32);
this.contents.drawText($gameSystem.year(), x, y * 4, 90,32,"right");
this.contents.drawText(Moghunter.play_time_word, 0, y * 5, 90,32);
this.contents.drawText($gameSystem.playtimeText(), x, y * 5, 90,32,"right");
// this.contents.drawText("Gold", 0, y * 6, 90,32);
// this.contents.drawText($gameParty._gold + "G", x, y * 5, 90,32,"right");
};
};

And there is one thing I would like to add to the HUD:
- I want it to say "Thursday Evening" when Switch 17 "Evening" is ON
- I want it to say "Thursday Night" when Switch 05 "Night" is ON
- I want it to say "Thursday" when none of the above switches is ON

I'm imagining it should just be 2 lines of code, but since, as I mentioned, I don't do JS, I don't know how to do that.

I'll be very grateful for any help!
Alright, I've gotten much closer, but I'm still missing one small piece.

This almost works, but the "Friday" and "Friday Night" texts overlap:
Window_Time_Status.prototype.draw_time_contents = function() {
var x = this.width - 130;
var y = 26;
// this.contents.drawText(Moghunter.time_word, 0, 0, 90,32);
// if (this.pm_mode) {var apm = " am";if ($gameSystem.hour() >= 12) {var apm = " pm"};
// this.contents.drawText($gameSystem.hour_pm() + ":" + $gameSystem.minute().padZero(2) + apm, x, 0, 90,32,"right");
// }
// else {
// this.contents.drawText($gameSystem.hour().padZero(2) + ":" + $gameSystem.minute().padZero(2), x, 0, 90,32,"right");
// };
if (this._mode === 1) {
// this.contents.drawText(Moghunter.day_word, 0, 0, 90,32);
var text = $gameSystem.day_week_name();
// + " " + $gameSystem.month().padZero(2) + "/" + $gameSystem.day().padZero(2);
if ($gameSwitches.value(17) === false) {this.contents.drawText(text, x - 60, y, 120,32,"center");}
else {}

if ($gameSwitches.value(17) === true) {this.contents.drawText(text + " Evening", x - 60, y, 120,32,"center");}
else {}

if ($gameSwitches.value(5) === true) {this.contents.drawText(text + " Night", x - 60, y, 120,32,"center");}
else {}


this.contents.drawText($gameParty._gold + "G", x - 60, y * 2, 120,32,"center");
var text = $gameSystem.month_name().padZero(2) + " " + $gameSystem.day().padZero(2) + ", " + $gameSystem.year();

this.contents.drawText(text, x - 60, 0, 120,32,"center");
}

While this doesn't show the HUD at all. Does JS not understand a simple "AND"?

Window_Time_Status.prototype.draw_time_contents = function() {
var x = this.width - 130;
var y = 26;
// this.contents.drawText(Moghunter.time_word, 0, 0, 90,32);
// if (this.pm_mode) {var apm = " am";if ($gameSystem.hour() >= 12) {var apm = " pm"};
// this.contents.drawText($gameSystem.hour_pm() + ":" + $gameSystem.minute().padZero(2) + apm, x, 0, 90,32,"right");
// }
// else {
// this.contents.drawText($gameSystem.hour().padZero(2) + ":" + $gameSystem.minute().padZero(2), x, 0, 90,32,"right");
// };
if (this._mode === 1) {
// this.contents.drawText(Moghunter.day_word, 0, 0, 90,32);
var text = $gameSystem.day_week_name();
// + " " + $gameSystem.month().padZero(2) + "/" + $gameSystem.day().padZero(2);
if ($gameSwitches.value(17) === false AND $gameSwitches.value(5) === false) {this.contents.drawText(text, x - 60, y, 120,32,"center");}
else {}

if ($gameSwitches.value(17) === true) {this.contents.drawText(text + " Evening", x - 60, y, 120,32,"center");}
else {}

if ($gameSwitches.value(5) === true) {this.contents.drawText(text + " Night", x - 60, y, 120,32,"center");}
else {}


this.contents.drawText($gameParty._gold + "G", x - 60, y * 2, 120,32,"center");
var text = $gameSystem.month_name().padZero(2) + " " + $gameSystem.day().padZero(2) + ", " + $gameSystem.year();

this.contents.drawText(text, x - 60, 0, 120,32,"center");
}

Please help, I'm so close 🙂
Well... I solved it. Thanks 🙂

Original thread: https://forums.rpgmakerweb.com/threads/displaying-text-based-on-switches.88250/