Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Printing a string variable to the output window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Printing a string variable to the output window

    Hi all,

    I know I'm doing something really shortsighted, but I need help trying to fix this.

    I've initialized a string variable called "LongEntry_EvalScore_Status" as a string data type. I assign a thread of text to it (something like "Situation 1"). When it comes time to print it in the output window with the following code....

    Print("LongEntry_EvalScore_Status: " + LongEntry_EvalScore_Status);

    Nothing appears to the right of the title. Am I missing a toString() somewhere, or does the output window handle string variables differently?

    Thanks in advance to anyone that can help.

    Yours,
    Spider

    #2
    Spider, what happens if you only print the LongEntry_EvalScore_Status variable upon hitting your print condition, with the title in front? Would you see a different outcome?

    Comment


      #3
      Hi Bertrand,

      I went one step further and wiped out the title part of the print statement. So, it just reads:
      Print(LongEntry_EvalScore_Status);

      ... but it still prints out a blank line in the Output window.

      Now, it could be what I'm attempting to save as a string. Take a look at these and see if you think I'm attempting and weird character saves with these statements:

      LongEntry_EvalScore_Status = "LE Scenario 2 - One hit now, one hit earlier";
      LongEntry_EvalScore_Status = "LE Scenario 3 - No hit, but previous double hit";

      Another possibility is that my conditions for these scenarios are not being hit, hence nothing's being printed. Still looking into it.

      Comment


        #4
        It actually ended up being the last possibility (i.e. the conditions were never hit). Thanks for the reply earlier all the same!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        22 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        19 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        14 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        10 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        41 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X