Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a examples for lucee docs #1458

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/00.home/homepage.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ Lucee is a [high performance](https://community.ortussolutions.com/t/how-does-cf

The documentation here aims to provide a thorough reference and guide to all things to do with the Lucee Server. This includes reference material on both [[functions]] and [[tags]] as well as more in-depth articles in the [[guides]] section.

Our documentation is an open source and community driven effort. It is also a constant work in progress and we always welcome feedback, improvements and suggestions. You can find out more about contributing to the Documentation in the [[about]] section.

To find out more about getting involved as a developer with Lucee, checkout our [Git Repo](https://github.com/lucee/Lucee/blob/6.0/CONTRIBUTING.md)
Our documentation is an open source and community driven effort. It is also a constant work in progress and we always welcome feedback, improvements and suggestions. You can find out more about contributing to ted as a developer with Lucee, checkout our [Git Repo](https://github.com/lucee/Lucee/blob/6.0/CONTRIBUTING.md)

## Lucee 6.2

Expand Down
11 changes: 10 additions & 1 deletion docs/03.reference/01.functions/evaluate/_examples.md
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
*There are currently no examples for this function.*
```luceescript
str1 = "Lucee";
str2 = "Lucee";
writeDump(evaluate("str1 eq str2"));
writeDump(evaluate("10 eq 12"));
writeDump(evaluate("10 neq 12"));
writeDump(evaluate("1 + 2 * 3"));
writeDump(evaluate("10 gt 12"));
writeDump(evaluate("13 gt 12"));
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An object to be serialized.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Name of an array whose elements populate the new column.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Name of the new column.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Column data type.
18 changes: 18 additions & 0 deletions docs/03.reference/05.objects/query/tostruct/_examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
```luceescript+trycf
qry = query(
id: [ 1, 2, 3, 4 ],
name: [ "mssql", "mysql", "image", "pdf" ],
version: [ "7.2.2.jre8", "8.0.30", "1.0.0.42", "1.1.0.7" ]
);
basic = qry.ToStruct("name");
dump( var=basic, label="basic (ordered)");

normal = qry.ToStruct( "version", "normal", false);
dump( var=normal, label="normal (unordered)");

row = qry.ToStruct( "version", "normal", true);
dump( var=row, label="valueRowNumber=true,unordered");

member = qry.ToStruct("id");
dump(var=member, label="member");
```
Loading