All Downloads are FREE. Search and download functionalities are using the official Maven repository.

samples.expressions.fetch-all-any.pec Maven / Gradle / Ivy

There is a newer version: 0.0.74
Show newest version
define preferredColor as storable Text attribute
define Person as storable category with attributes name and preferredColor

define main as method doing:
    p1 = Person with "John" as name and "red" as preferredColor
    p2 = Person with "Sophie" as name and "blue" as preferredColor
    p3 = Person with "Alex" as name and "blue" as preferredColor
    store p1, p2, p3
    c = fetch all where preferredColor = "blue"
    for each p in c:
        printLine "p -> " + p




© 2015 - 2024 Weber Informatics LLC | Privacy Policy