View previous topic :: View next topic |
Author |
Message |
plouf
Joined: 19 Jan 2012 Posts: 78 Location: Athens,Greece
|
Posted: Mon Jun 15, 2015 10:30 pm Post subject: how complicated a "statement" can be? |
|
|
hi
i was experiment and found that complicated expresion are not supported
for example
if a > (b*2) OR a <(b/2) then
blah blah
endif
not even
if a>(b*2) then
nor ever
if myfunction()> 2
did i do something worng or only a simple comparison is supported?
(BASCOM-AVR version : 2.0.7.8 ) |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Jun 15, 2015 10:51 pm Post subject: |
|
|
it is written in the help under 'language fundamentals'.
simple rule is : only 1 expression is allowed.
you can also use and and or like : if a>b and a<c and/or .... then
but you can not use () to give priority or include a sub expression.
when creating a constant you can use complex expressions.
if you download a future version you can also use full expressions. _________________ Mark |
|
Back to top |
|
|
plouf
Joined: 19 Jan 2012 Posts: 78 Location: Athens,Greece
|
Posted: Tue Jun 16, 2015 6:29 am Post subject: |
|
|
thanx
where i can download "future version" it is availabel (As beta) or will be available "in future" ?
and what is "full expresions" ? parenthesis multixpressions? |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Jun 16, 2015 8:40 am Post subject: |
|
|
update process is described in the help (updates, move to new pc)
future means future, it is not available yet.
full expressions are expressions with parenthesis. _________________ Mark |
|
Back to top |
|
|
JC
Joined: 15 Dec 2007 Posts: 584 Location: Cleveland, OH
|
Posted: Tue Jun 16, 2015 6:36 pm Post subject: |
|
|
full expressions...
Great news!
Thanks for your continued development of Bascom!
JC |
|
Back to top |
|
|
plouf
Joined: 19 Jan 2012 Posts: 78 Location: Athens,Greece
|
Posted: Tue Jan 24, 2017 1:58 am Post subject: |
|
|
HI
is there any progress about full expressions's ?
thanx |
|
Back to top |
|
|
|