# How to create one preset with two or more preconditions?

**URL:** <https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436>\
**Category:** Uncategorized\
**Created:** [February 9, 2021, 4:55pm UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436 "2021-02-09T16:55:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![prawira](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@prawira](https://forum.genieacs.com/u/prawira)\
**Post date:** [February 9, 2021, 4:55pm UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436/1 "2021-02-09T16:55:59Z")

</div>

hi all,

as subject, how to create one preset with two or more preconditions ?  
such as Precondition:  
Device.DeviceInfo.SerialNumber = ‘1234567890’ **and** Tags.UPGRADING

thank you

P

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [February 9, 2021, 6:42pm UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436/2 "2021-02-09T18:42:33Z")

</div>

Hi,

```auto
Device.DeviceInfo.SerialNumber = ‘1234567890’ AND Tags.UPGRADING IS NOT NULL

```

for tags you can use IS NULL if you want the preset to run when the tag is missing.

---

<div class="post-metadata">

**Author:** ![prawira](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@prawira](https://forum.genieacs.com/u/prawira)\
**Post date:** [February 10, 2021, 2:04am UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436/3 "2021-02-10T02:04:58Z")

</div>

ok thank you lavira. i will try it.

P

---

<div class="post-metadata">

**Author:** ![maxon](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/maxon/32/657_2.png) [@maxon](https://forum.genieacs.com/u/maxon)\
**Post date:** [August 9, 2021, 7:06am UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436/4 "2021-08-09T07:06:49Z")

</div>

Hi,  
how to add negation to the precondition, like that “!==” and “!=” ?  
I would like to get a similar precondition InternetGatewayDevice.DeviceInfo.SoftwareVersion !== “1.10.42”

Thank you.

---

<div class="post-metadata">

**Author:** ![JonasGhost](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/jonasghost/32/286_2.png) [@JonasGhost](https://forum.genieacs.com/u/JonasGhost)\
**Post date:** [August 9, 2021, 7:25am UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436/5 "2021-08-09T07:25:24Z")

</div>

e.g. like this:  
NOT DeviceID.ProductClass = “FRITZ!Box” AND Tags.FirmwareUpgrade IS NOT NULL  
this stands for, every device that is not an FRITZ!Box and has the tag FirmwareUpgrade

---

<div class="post-metadata">

**Author:** ![maxon](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/maxon/32/657_2.png) [@maxon](https://forum.genieacs.com/u/maxon)\
**Post date:** [August 10, 2021, 5:08am UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436/6 "2021-08-10T05:08:31Z")

</div>

Thanks a lot, it helped)

---

<div class="post-metadata">

**Author:** ![fdavidcn](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/fdavidcn/32/594_2.png) [@fdavidcn](https://forum.genieacs.com/u/fdavidcn)\
**Post date:** [August 31, 2021, 11:51am UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436/7 "2021-08-31T11:51:41Z")

</div>

Hi,

Another way in v1.2.5 could be DeviceID.ProductClass \<\> “Value”

---

<div class="post-metadata">

**Author:** ![maxon](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/maxon/32/657_2.png) [@maxon](https://forum.genieacs.com/u/maxon)\
**Post date:** [September 7, 2021, 12:32pm UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436/8 "2021-09-07T12:32:42Z")

</div>

I’ll try, and thanks for the Spanish translation.

---

<div class="post-metadata">

**Author:** ![fdavidcn](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/fdavidcn/32/594_2.png) [@fdavidcn](https://forum.genieacs.com/u/fdavidcn)\
**Post date:** [September 7, 2021, 3:19pm UTC](https://forum.genieacs.com/t/how-to-create-one-preset-with-two-or-more-preconditions/1436/9 "2021-09-07T15:19:36Z")

</div>

You are welcome!!
