#Does Kometa support any sort of programming operators? (AND, OR, <>=, etc.)

1 messages · Page 1 of 1 (latest)

night tinsel
#

See subject line.

rough groveBOT
#

Welcome @night tinsel!

Someone from <@&938443185347244033> will assist when they're available.

Including meta.log from the beginning is a huge help. Type !logs for more information.

After attaching your log, do not forget to hit the green check boxes when prompted by our bot.

#

You can press the "Close Post" button above or type /close at any time to close this post.

spiral thorn
#

There are operations like those available in various filters, but they aren't expressed in those characters.

#

If you provide some specific context a more precise answer could be provided.

spiral thorn
#

You can use all and any in filters/plex searches.
Generally the numeric filters/searches support .gt, .gte, .lt, or .lte modifiers.
Date filters can be used with .not, .before, or .after.
String filters can be used with .not, .is, .isnot, .begins, or .ends

If you are asking about if-else or other control structures, those don't exist in YAML

prime shuttle
#

There are also conditions which can do some of this type of behaviour but it depends exactly on what you're looking for

tight rivetBOT
#

antwanchild used !aenh

@night tinsel, anything else needed here? If not, please type /close and hit enter. Please respond within 24 hours of this message or it will be archived.

night tinsel
#

I'm trying to create a more complex set of rules for rotating the Visibiltiy of Collections displayed on the Home Screen. Currently, I just have a set of 62 collections that rotate monthly in pairs (62/2 = 31 days). However, it gets repeative and the pairing never changes. Also, I have several more Collections I would like to bring into the rotation. It would be great to be able to randomly pick 2-3 collections every day or twice a day.

spiral thorn
#

That's not something that Kometa can do on its own. You'll need an external script to build the YAML or manage the visibility directly.
There is at least one project on GitHub that manages this.

night tinsel
#

Thank you