---
title: "7.6 Switch/Lamp"
canonical: "https://manual.cimon.com/space/CCANVAS/4334092306/7.6%20Switch%2FLamp"
format: markdown
---
The **Switch/Lamp** object reflects the state of a tag and allows the user to alter that tag’s value by interacting with the object. To create a **Switch/Lamp**, click **Insert** > **Switch/Lamp** then click and drag on an open section of the page to place the object. Once the object has been placed, the user can configure the object using the **Property Editor**.

![image](media://dfe956ac-d65f-4449-81eb-87784293648e)

# <span style="color: #0747a6">**Lamp Properties**</span>

In the **Property Editor**, the user can alter the lamp properties of the object by expanding the **Lamp Properties** tab. These properties allow the user to change the visual state of the object depending on the value of a bound tag. By default, a **Switch/Lamp** object has two states: **State 0** and **State 1**. The user can add additional states if necessary by pressing **Add State** at the bottom of the **Lamp Properties** tab. 

| **Property** | **Description** |
| --- | --- |
| Image | Allows the user to select the image to be displayed for the current state. Users can upload .png, .jpg, .svg, .bmp, .jpeg, .gif files or select from a library of pre-loaded images. |
| Text | Allows the user to enter text to display for the current state. |
| Font Name | Allows the user to change the font used for the above text. |
| Font Size | Allows the user to change the font size used for the above text. |
| Italic | Allows the user to italicize the state’s text. |
| Underline | Allows the user to underline the state’s text. |
| Bold | Allows the user to bold the state’s text. |
| Text Color | Allows the user to change the text color used for the above text. |
| Vertical Alignment | Allows the user to change the vertical alignment used for the above text. |
| Horizontal Alignment | Allows the user to change the horizontal alignment used for the above text. |

# <span style="color: #0747a6">Switch Properties</span>

There is not a separate tab in the **Property Editor** that can be used to configure the switch properties of the object. Instead, these properties can be configured using the **Actions** tab. Under the **On Press** tab, the user can assign a script or action command to execute when the user presses the object. For example, the below action command toggles a Boolean tag’s value when the **Switch/Lamp** is pressed.

![image](media://6afe14a3-241f-4e11-91a8-8d269fd584cd)