Skip to content

Commit

Permalink
Merge pull request #1400 from MitrahSoft/Added_a_examples_03-08-2023
Browse files Browse the repository at this point in the history
Added a examples for lucee docs
  • Loading branch information
zspitzer authored Aug 3, 2023
2 parents ef66a13 + c3ed724 commit 2f11ab9
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/03.reference/01.functions/extensioninfo/_examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```luceescript
writeDump(ExtensionInfo( id ));
```
2 changes: 1 addition & 1 deletion docs/03.reference/01.functions/formatbasen/_examples.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```cfm
```lucee+trycf
<cfoutput>
#formatBaseN( 15, 2 )# <!--- 1111 (binary) --->
#formatBaseN( 15, 16 )# <!--- f (hexadecimal) --->
Expand Down
7 changes: 6 additions & 1 deletion docs/03.reference/01.functions/isxmlattribute/_examples.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
*There are currently no examples for this function.*
```luceescript+trycf
myPath='<note><from body="sample">Bob</from></note>';
lastnames = XmlSearch(myPath, '//@body');
writeDump(lastnames);
writeOutput(isXMLAttribute(lastnames[1]));
```
4 changes: 4 additions & 0 deletions docs/03.reference/05.objects/numeric/log/_examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```luceescript+trycf
numericValue = 10;
writeOutput(numericValue.log());
```
4 changes: 4 additions & 0 deletions docs/03.reference/05.objects/numeric/log10/_examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```luceescript+trycf
numericValue = 10;
writeOutput(numericValue.log10());
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Key for which to search.

0 comments on commit 2f11ab9

Please sign in to comment.