Modify ↓
#327 closed Bug (Fixed)
SciTE/Tidy bug. False message: "endfunc" is closing previous "if"
| Reported by: | Hubertus72 | Owned by: | Jos |
|---|---|---|---|
| Milestone: | Future Release | Component: | SciTE4AutoIt |
| Version: | 3.2.12.0 | Severity: | None |
| Keywords: | Tidy message "endfunc" is closing previous "if" | Cc: |
Description
There is a Tidy bug in _ITE function: Error -> "endfunc" is closing previous "if"
but the function is running fine.
Local $n1 = 1, $n2
$t = "Steps" & @TAB & "Variants" & @TAB & @TAB & @TAB & @TAB & "Steps" & @TAB & "Variants" & @TAB & @LF & @LF
For $i = 1 To 91
$n0 = $n1
$n1 += $n2
$n2 = $n0
$t &= $i & @TAB & StringFormat("%-20.0f", $n1) & _ITE(Mod($i, 2), @TAB & @TAB & _ITE($i < 54, @TAB, ""), @LF)
Next
MsgBox(0, "The steps enigma", $t)
Func _ITE($if, $then = 1, $else = 0)
If $if Then Return $then
Return $else
;### Tidy Error -> "endfunc" is closing previous "if"
EndFunc ;==>_ITE
Attachments (0)
Change History (4)
follow-up: 4 comment:1 by , 18 years ago
comment:4 by , 18 years ago
Replying to Jos:
You are good in finding the famous needle in the haystack :)
The error is triggered because the line ends with "then". I can change the test to " then".
Jos
I'll try to find more needles, if they don't hurt you :)
I'm sorry to spoil your time. ;-)
Hubertus
Note:
See TracTickets
for help on using tickets.

You are good in finding the famous needle in the haystack :)
The error is triggered because the line ends with "then". I can change the test to " then".
Jos