Special Character -> # error

Issue #199 resolved
Ali Ozdemir created an issue

When I try to use # character in my input, openbrim gives the following error.

<P N="name" V="#2" Role="Input" />

Untitled.png

Comments (1)

  1. Ali Koc

    what is the purpose of #2? If it is meant to be some text value, it should be:

    <P N="name" V="#2" T="Text" Role="Input" />
    

    If you have some object named "#2" and you want to assign this object as value, then the type of the parameter needs to be the type of the object. For example, assume #2 is the name of a Section object, then the parameter should look like this:

    <P N="name" V="#2" T="Section" Role="Input" />
    

    Otherwise, OpenBrIM will take #2 as an expression and "#" means nothing inside a formula -- so, the error you get is accurate.

  2. Log in to comment