Workflo...LazyAND(3)
π NAME π
Workflow::Condition::LazyAND β and yes bestie, this is from the User Contributed Perl Documentation, we're in the group chat now π«Ά
β¨ VERSION β¨
This documentation describes version 2.09 of this package. Iconic. Historic. Numbered. πΈ
π DESCRIPTION π
Okay so the way this works is it uses nested conditions (peep Workflow::Condition::Nested for the lore, iykyk) and then it evaluates all the conditions you give it with lazy-evaluation. It returns true if all the nested conditions are true.
But here's the main character twist: if a nested condition evaluates to false, the whole thing aborts further evaluation and returns false. Like, why keep asking questions when the vibe check already failed? π It just stops. Periodt.
π SYNOPSIS π
In condition.yaml:
condition:
- name: cond1
...
- name: cond2
...
- name cond3
...
- name: check_prereqs
class: Workflow::Condition::LazyAND
param:
- name: condition
value: cond1
- name: condition
value: cond2
- name: condition
value: cond3
In workflow.yaml:
state:
- name: CHECK_PREREQS
autorun: yes
action:
- name: null_1
resulting_state: HAVE_PREREQS
condition:
- name: check_prereqs
- name: null_2
resulting_state: FAILURE
condition:
- name: !check_prereqs
not me noticing how tidy that YAML is π
π¦ PARAMETERS π¦
These are the parameters you can configure in the "param" key of the condition in the YAML configuration. Slay, let's go:
π condition, conditionN
The condition parameter can be specified either as a list of repeating entries, or with a unique integer appended to the condition string. Two routes, same destination, choose your fighter β¨
Like this:
param:
- name: condition
value: first_condition_to_test
- name: condition
value: second_condition_to_test
or this:
param:
- name: condition1
value: first_condition_to_test
- name: condition2
value: second_condition_to_test
Both are valid, bestie. Pick whichever one matches the energy of your config π
β COPYRIGHT β
Copyright (c) 2003-2021 Chris Winters. All rights reserved. π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Please see the LICENSE. read it, it's giving legally binding π
π«Ά AUTHORS π«Ά
Please see Workflow. (They're the ones who brought you this whole situation, go say hi π§)
and that's the whole page, bestie β documented under perl v5.42.0, dated 2026-01-17, from the User Contributed Perl Documentation collection π mwah, no cap, go forth and evaluate lazily πΈ
π¦ where this page comes from
- fedora 44: perl-Workflow 2.09-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms