Jump to content



1

Data (Is a new line the same as a comma?)


2 replies to this topic

#1 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,923 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Tue Sep 20, 2011 5:26 PM

Why does the following data work? Shouldn't there be a comma at the end of every line, except the last one?

   2,14,5
   1
   10,14,5
   8
   2,14,5
   8


Thanks.

#2 RevEng OFFLINE  

RevEng

    River Patroller

  • 2,010 posts
  • bit shoveler
  • Location:Canada

Posted Tue Sep 20, 2011 5:44 PM

The short answer is no, there doesn't need to be a comma at the end of each line. In fact, when bB parses each line of the data statement, it actually strips off any trailing commas.

#3 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,923 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Tue Sep 20, 2011 6:00 PM

View PostRevEng, on Tue Sep 20, 2011 5:44 PM, said:

The short answer is no, there doesn't need to be a comma at the end of each line. In fact, when bB parses each line of the data statement, it actually strips off any trailing commas.
So a new line is like using a comma.


Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users