• kid(P K) working.... using OR(A B)

    From Graham Cooper@21:1/5 to All on Mon Feb 20 01:45:58 2023
    In this example we use OR() to calculate son(P K) or daughter(P K)




    kid mary [?]

    YES

    dot mary maryson
    maryson




    2 kid mary
    C=mary
    X=
    kid mary

    2 1 or son dot X
    1 or son dot X
    A=son
    B=dot
    or son dot X

    1 1 if
    1 2 A C X
    1 8 if
    1 9 B C X
    9 dot mary X
    X=maryson
    dot mary maryson

    1 10 print B
    1 11 print C
    1 12 print X
    1 13 echo newline
    1 14 endif
    2 2 print X


    -------------------------------- CODE -----------------------


    or A B X
    -if
    -A C X
    -print A
    -print C
    -print X
    -echo newline
    -else
    -if
    -B C X
    -print B
    -print C
    -print X
    -echo newline
    -endif

    kid C X
    -or son dot X
    -print X

    sis alan zeta
    sis brad mary
    bro brad nelly
    bro carl tom
    son alan joe
    son nelly nellyson
    dot mary maryson
    son a b
    dot c d

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)