Remove All Ads from XDA
Honor 9 Lite

[Q] Tasker - remove CR from EOF when writing a variable to a file

38 posts
Thanks Meter: 2
By SimonSP, Member on 25th June 2014, 01:34 PM
Post Reply Email Thread

Im having some troubble with Tasker when writing the contents of a variable to a file.

The thing is that Tasker add a carriage return to the end of the file and when I later read the file the conditions I use to check against the contents is never true because of the carriage return.

The contents of the file should be 1 or -1 (a toggle)

How can I remove the carriage return so I can use "if %var=1" do something

Thanks in advance,
25th June 2014, 02:20 PM |#2  
OP Member
Thanks Meter: 2

Seems to have it working now.

Did "%var=%var * 1" after I read the file.

Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes