PDF template condition

I would like to add a php condition in my template. exampl

if($dropdownval == β€œthis”) echo β€œ100”;
else echo"not ready";

is this possible