Skip to content

Commit

Permalink
improve md
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Jun 6, 2024
1 parent 50ff86b commit 58214c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/recipes/labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{
"title": "Loop Labels",
"id": "loop-labels",
"description": "Lucee supports labels for all loop tags and statements, allowing you to control the flow of nested loops more precisely.",
"keywords": [
"loop",
"label",
Expand Down
12 changes: 6 additions & 6 deletions docs/recipes/null_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
]
}
-->
## Null Support
# Null Support

This document explains how to set null support in the Lucee server admin, assigning `null` value for a variable and how to use `null` and `nullvalue`. It is an annotation of the video found here: [https://www.youtube.com/watch?v=GSlWfLR8Frs](https://www.youtube.com/watch?v=GSlWfLR8Frs)

### Enabling NULL support
## Enabling NULL support

You can enable null support via the **Lucee Server Admin** --> **Language/compiler** and setting Null support to **complete support** (exclusive to Lucee) or **partial support** (default, same as Adobe CF).

Expand All @@ -30,9 +30,9 @@ Or via [[tag-application]]
this.nullSupport = true;
```

### Explanation
## Explanation

#### Illustration 1:
### Illustration 1:

```lucee
<cfscript>
Expand All @@ -54,7 +54,7 @@ If we assign the function result to a variable, i.e. `t = test();`, and referenc

In all cases, `dump( isNull( notexisting ) );` will throw an error.

#### Illustration 2:
### Illustration 2:

```luceescript
query datasource="test" name="qry" {
Expand All @@ -67,7 +67,7 @@ dump( qry._null );
With **partial support** for NULL enabled, `dump(qry._null);` will output an **empty string**.
With **full support**, `Empty: null` will be output and `IsNull( qry._null );` will evaluate `true`.

### NullValue() function and null keyword
## NullValue() function and null keyword

With **partial support** for NULL, the `NullValue()` function must be used to explicitly return a null value (this will work in all scenarios). For example:

Expand Down
4 changes: 2 additions & 2 deletions docs/recipes/precompiled-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
]
}
-->
## Precompiled Code
# Precompiled Code

This document explains how to pre-compile code for a production server while the source code is deployed. This method avoids compilation on the production server for security reasons. We explain this method with a simple example below:

Expand All @@ -38,7 +38,7 @@ Run this index.cfm page in the browser.

* Finally, run the `/sample/test.cfm` file in your browser. It should show the same results as the index.cfm file would.

### Footnotes
## Footnotes

Here you can see the above details in a video:

Expand Down

0 comments on commit 58214c1

Please sign in to comment.