I wanted to change the cycles render to Blender internal through a panel button but only want the panel button to appear only when the current render engine is cycles. How do I create the conditional statement ?
Here the code I'm trying but it's not working:
if context.scene.render.engine == {'CYCLES'}:
layout.operator("mesh.primitive_cube_add")