Watch This Now!

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

22 posts
Thanks Meter: 1
By SimonSP, Junior Member on 25th June 2014, 12:34 PM
Post Reply Subscribe to Thread 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, 01:20 PM |#2  
OP Junior Member
Thanks Meter: 1

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