How much data can a string variable hold?

I'm using macrodroid to create an emotionally adaptive Artificial Intelligence.

Currently in my process i'm loading an AI personality template which includes some settings and scripted conversation elements.

I don't want to crash macrodroid and also I want to make sure my imported files never exceed the variable length.

what size file can I safely load into a string variable?

Many thanks for any support on this
 
Thank you so much for your swift reply on my thread!

Interesting idea to use HTTP GET ... right now i'm striving to load variables from the uers device on a non rooted phone so currently using shell to get the file contents.

Though if other people start using this AI model, it could be cool to use the get command to download a profile that someone else developed.

Sounds like you are saying that no matter where the data comes from, the macrodroid string length is 100,000 characters?
 
See second reply in the linked thread - increased to 500,000 - AFAIK.
I see this

just confirming
I will increase this to 500K chars.

"this" = string variable ?? for sure?

or is it somehow dependent on being used with the GET command? seems like the variable size would be constant no matter what input is used.
 
Top