Login Alert Script - Failed

Hello,

where is the mistake?

[admin@router] > # BEGIN SETUP
[admin@router] > :local scheduleName “LoginAlert”
[admin@router] > :local emailAddress “mikrotik@f3sdfd.com
[admin@router] > :local startBuf [:toarray [/log find message~“logged in” || message~“login failure”]]
[admin@router] > :local removeThese {“telnet”;“whatever string you want”}
[admin@router] > :local hostname [/system identity get name]
[admin@router] > # END SETUP
[admin@router] >
[admin@router] > # warn if schedule does not exist
[admin@router] > :if ([:len [/system scheduler find name=“$scheduleName”]] = 0) do={
{… /log warning “[LOGMON] ERROR: Schedule does not exist. Create schedule and edit script to match name”
{… }
[admin@router] >
[admin@router] > # get last time
[admin@router] > :local lastTime [/system scheduler get [find name=“$scheduleName”] comment]
no such item
[admin@router] > # for checking time of each log entry
[admin@router] > :local currentTime
[admin@router] > # log message
[admin@router] > :local message
[admin@router] >
[admin@router] > # final output
[admin@router] > :local output
[admin@router] >
[admin@router] > :local keepOutput false
[admin@router] > # if lastTime is empty, set keepOutput to true
[admin@router] > :if ([:len $lastTime] = 0) do={
{… :set keepOutput true
syntax error (line 2 column 6)
[admin@router] > }
[admin@router] >
[admin@router] > :local counter 0
[admin@router] > # loop through all log entries that have been found
[admin@router] > :foreach i in=$startBuf do={
{…
{… # loop through all removeThese array items
{… :local keepLog true
{… :foreach j in=$removeThese do={
{{… # if this log entry contains any of them, it will be ignored
{{… :if ([/log get $i message] ~ “$j”) do={
{{{… :set keepLog false
{{{… }
{{… }
{… :if ($keepLog = true) do={
{{…
{{… :set message [/log get $i message]
syntax error (line 13 column 6)
[admin@router] >
mikrotik01.JPG

does nobody use the script?