Graphics

 View Only
  • 1.  Visual Logic - Decimal Points and N/A

    Posted 02-26-2018 13:54

    I work with an RSS feed that gives us data for stocks. I have the visual logic set up to limit values after decimal points to 2 spaces.


    I would like to keep this logic but somehow enable the value to accept N/A when data is not available. Currently when I get an N/A value, the text comes up 0.00. When I try to select static text in place of data, it does nothing. Is there a way to do this?



  • 2.  RE: Visual Logic - Decimal Points and N/A

    Posted 02-26-2018 17:27

    Would this work for you? I may have over simplified it. Where "N/A TEXT VALUE" is simply "N/A" (which is hidden) and used just for comparison. I gave you an input field that is also hidden so that you don't get into a loop. I hope this helps, let me know.


    #XPression


  • 3.  RE: Visual Logic - Decimal Points and N/A

    Posted 02-27-2018 13:28
    Thank you for your response. If I understand correctly, when the value is N/A, I would have to link the data to the hidden N/A text and turn the visibility on?
    #XPression


  • 4.  RE: Visual Logic - Decimal Points and N/A

    Posted 02-27-2018 16:41
    Ah, I see what you mean. I thought that the data output actually was "N/A". So, in theory the field will output a blank until actually data shows? You could do a visual logic block that displays the text "N/A" if the value of the text field is below .01. Otherwise it would pass the data on and display it. Let me play around a bit.
    #XPression


  • 5.  RE: Visual Logic - Decimal Points and N/A

    Posted 02-27-2018 17:16

    Give this one a try.


    #XPression


  • 6.  RE: Visual Logic - Decimal Points and N/A

    Posted 02-28-2018 13:20
    I think this works. Thank you!
    #XPression


  • 7.  RE: Visual Logic - Decimal Points and N/A

    Posted 02-28-2018 16:27
    Good to hear.
    #XPression


  • 8.  RE: Visual Logic - Decimal Points and N/A

    Posted 03-01-2018 14:09
    I am trying to take this one step further now. For one of the data streams, we use percentages. For this particular field, I have a % sign as a separate text field than the data number (the data field does not show a % sign, so I added it myself) It is a child of the data number so it can move according to the length of the number. Is there a way to make the % sign visible when a true number is coming from data, but not visible when the value is N/A?
    #XPression


  • 9.  RE: Visual Logic - Decimal Points and N/A

    Posted 03-01-2018 14:59

    I actually figured this step out myself... Thank you again for your help!


    #XPression


  • 10.  RE: Visual Logic - Decimal Points and N/A

    Posted 03-01-2018 16:34
    Way to go. Does this add a % sign? What does the "Not" block do?
    #XPression


  • 11.  RE: Visual Logic - Decimal Points and N/A

    Posted 03-02-2018 13:38
    The % sign is already in the scene as a separate text object. Some of our data must be shown as percentages, but our RSS feed does not include the % sign so I had to add it. The NOT block just tells it to show the % sign when a numerical value is present or to not show it when the data comes up N/A.
    #XPression


  • 12.  RE: Visual Logic - Decimal Points and N/A

    Posted 03-06-2018 20:24
    Excellent, thanks for the info.
    #XPression