Computed Attributes - Turn ignition off where State is Offline

Hello,
Please kindly know how to do in the calculated attribute Type: Ignition "If State is Connected then Ignition is true" or "If State is Disconnected then ignition is offline"

Thank you for your attention.