Skip to main content
Inspiring
Jan 20, 2022 5:42 AM UTC
Question

how to get a values from a sub interface

if i want to transport a value to a interface belongs to certain rule i can use rule(a:local!a),

but how can i vice versa get a variable value belongs to its interface?

    6 replies

    harshitb6843
    Brainy
    Jan 20, 2022 5:56 AM UTC

    Hi there,

    The code you have written works both ways. 
    If you change the value of RI 'a' in 'rule' interface, then that will be reflected in the parent's local!a variable. And vice versa. 

    Inspiring
    Jan 20, 2022 5:59 AM UTC

    i mean i write in the parent interface only, it can extract child local!value. Is this mean i do not have to change any thing?

    harshitb6843
    Brainy
    Jan 20, 2022 6:09 AM UTC

    You cannot extract the local variables of a child interface. To do so, you need to save them in the rule inputs.