CKeditor plugin - Can we have if condition in template.?

Can we have if condition in template.?

template:

			'<div class="customdiv">&#8203;Placeholder</div>',

Which template are you talking about? If it’s a Freemarker template (i.e. an .ftl file) you have the Freemarker language at your disposal, including if-else statements.

No. I am talking about Ckeditor Plugin Widget… having property as template.