# Conditionals

Jet Admin allows you to use **conditional logic** in your app and apply it to UI components and dynamic values. There are several ways to implement it depending on the use case:

### Formulas

You can use logical expressions, such as `If`, `Else`, `Or` to transform **dynamic values**. These logical expressions live in Jet in the form of **Formulas**, which can be found in the Dynamic data modal pop-up:

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2Fq4b2CZKyxqPUSfaiZCgw%2Fbtftnf.png?alt=media\&token=8f13811f-599b-486b-bc15-125de69f9d5b)

### Conditional visibility&#x20;

Component visibility allows you to **show or hide UI components** based on a rule. This might be useful, for example, when building a complex form where you want or don't want to show more fields to gather additional information based on a certain input.

Or when you want to show or hide some sections of your app depending on the user who's logged in or their role.

Conditional visibility **can be accessed** within any UI component. To access, follow the steps:

1. Click on the **Component**
2. Go to the **Display Tab**

{% @arcade/embed flowId="GTcwwla472d83KVovqMs" url="<https://app.arcade.software/share/GTcwwla472d83KVovqMs>" %}

Dive deeper into conditional visibility **setup** and **use cases** here:

{% content-ref url="components-visibility/conditional-visibility" %}
[conditional-visibility](https://docs.jetadmin.io/user-guide/components-visibility/conditional-visibility)
{% endcontent-ref %}

### Conditional disable

But what if you want to show the value of a UI component still, but make it **uneditable based on a rule**? In that case, you should use the conditional disable feature, which you can find right below the Conditional visibility:

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FtmNQMqAEUJVEyqynU0Js%2Fzdfbt.png?alt=media\&token=fd7e01a3-9eec-43c7-bc56-69710969b430)

Dive deeper into conditional disable **setup** and **use cases** here:

{% content-ref url="components-visibility/conditional-disable" %}
[conditional-disable](https://docs.jetadmin.io/user-guide/components-visibility/conditional-disable)
{% endcontent-ref %}

Allowing users to add, edit & delete records can be very powerful, but sometimes you want to restrict this to only certain Pages or Teams/Users. With conditional add, edit & delete you can do this:

{% content-ref url="components-visibility/conditional-add-edit-and-delete" %}
[conditional-add-edit-and-delete](https://docs.jetadmin.io/user-guide/components-visibility/conditional-add-edit-and-delete)
{% endcontent-ref %}
