Is this correct code of how to it?

Template("I do not understand your question{if(sentence.includes
("?")){"question"}else("I do not understand your statement{sentence.includes}(".")){"statement"}}")