Remember, it is always commandline = argument delimeter.
test ( = [ ) is command, ... [ ] are not bracket as in some programming languages.
if need if-block end = fi.
Also use always "" with variable. Why ? If variable is empty, you get error, but if it is "$variable", it's always string with length >= 0.
Code:
if [ "$X" = "Today is holiday." ]
then
echo "i dont need to go to ofc"
else
echo "i need to go to ofc"
fi