EC_NODE_COND(3)

πŸ’– NAME πŸ’–

ec_node_cond β€” bestie, this is the function that creates a condition node. That's it, that's the whole job. ✨

This page lives in the Libecoli Programmer's Manual (section 3, aka the C library functions girlies 🫢).


🌸 SYNOPSIS 🌸

#include <ecoli/node_cond.h>

struct ec_node * ec_node_cond(
    const char       *id,        /* The node identifier. */
    /*
     * The condition string. This is a function-based expression.
     */
    const char       *cond_str,
    struct ec_node   *child      /* The ecoli child node. */
);

okay so like. three args. id, cond_str, and child. iconic signature tbh. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So the condition node does one very specific little thing: it checks that an expression is true before it goes ahead and parses/completes the child node. ✨

And if that expression is false?? it doesn't match anything. not a single thing. it's giving "no thoughts, head empty, zero matches" πŸ’€

So basically: condition true β†’ child gets to do its thing. condition false β†’ nothing happens, we move on. that's the vibe check. 🌈


πŸŽ€ RETURN VALUE πŸŽ€

You get back the new ecoli cond node. 🫢 that's your girl right there. struct ec_node *, freshly made, ready to be plugged into your tree.


⭐ SEE ALSO ⭐

...yeah bestie there's literally nothing here 😭 the original page left it blank so I'm leaving it blank too. no cap. an empty SEE ALSO is its own kind of main character energy I guess πŸ’…βœ¨


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


and that's the whole page, mwah πŸ’– this was libecoli, dated 2026-06-11, and you've been reading EC_NODE_COND(3) β€” go forth and conditionally match, bestie πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from