It will do as expected but doesn't honor the (if (= attValue 90)
It skips that line of code.
The variable
attValue will always be a string (or
nil), therefore the test should be either:
(= attValue "90")
or:
(= (atoi attValue) 90)
Per my earlier response.I also get this message from the <Build Output> window when I "Check TEXT in Editor"
[CHECKING TEXT FM136.lsp loading...]
..
; warning: local variable used as function: LM:GETATTRIBUTEVALUE
; Check done.
This is only a warning and will not affect the code operation, but the warning appears because you have declared the
LM:GetAttributeValue as a symbol local to
c:FOO. You can safely remove
LM:GetAttributeValue from the list of local variables, as there is no need for this function to be local unless you have another (different) definition of the same function in the document namespace (which I highly doubt).
i.e.:
(/ LM:GetAttributeValue ss attValue)
Can become:
(/ cl56 fm136 ss attValue)
(I've added your other variables)