Is it possible to conditionally add to an if statement? For example, I have this if statement if (completed) { alert(\'Hello\') } I\'m curious is it possible to add
if (completed) { alert(\'Hello\') }