Light Open Platform (original WebEasy ) can directly use the string as arithmetic or Logical Expressions to make a calculation, similar to a schoolbag value expression
start character |
< P align= "left" > return type |
delimiter |
logical string |
Terminator |
@ { |
type |
: |
str |
} |
Note: Type characters can no longer be used as schoolbag names
Pick up a blog
@ {logic: logical Expression }-- Logical Calculation
Completes the calculation of the logical expression within the page, returning true or false
Sample:@{logic:2<3}
Composite operations
The above four kinds of operations can be combined to perform complex operations.
Example:@{logic:@{int:2+@{float:2.2+3.3}-@ {doule:2.2+1}}<3}
Note: Output inside the page">","<"To be converted accordingly to the"> ","< "
I suggest you try it yourself.
Easy to download resources for Internet development Platform
Platform and Latest development Manuals free Download: http://download.csdn.net/detail/tx18/8464425
Development example: Light Open e-commerce website , free download: http://download.csdn.net/detail/tx18/8318585
Light open platform will be upgraded to provide you with more powerful and easy features, please pay attention to Download the latest version
Arithmetic operation 2 (logical computation and compound operation)