User Tools

Site Tools


playground:playground

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
playground:playground [2021/09/13 00:03] craigtplayground:playground [2021/09/17 22:10] craigt
Line 1: Line 1:
-===== Empty() ===== +====== Decode(method, text====== 
-Category:  Special function +Category:  Web function
 \\  \\ 
 =====Description===== =====Description=====
-This function creates an [[syntax:types#empty_values|empty value]]. +This function decodes a text string using one of the available methods below.
- +
-\\  +
-=====Use cases===== +
-Use //empty()// to insert empty values into cells, or within other functions.+
  
 \\  \\ 
 =====Arguments===== =====Arguments=====
-This function does not require arguments+^Argument^Type^Description^ 
- +|method  | Text |The decoding method to use on //text// See the table below | 
-**Return value type:** Empty value+|text  |Text |The text string to be decoded.  | 
 +**Return value type:** Text.
  
 \\  \\ 
-=====Remarks===== +^Method  ^Notes  ^ 
-While value can be tested for an empty value using a "value = empty()expression, the [[syntax:functions:isempty|IsEmpty]] function can also be used.  The two approaches are equivalent.+|'uriComponentEscape' |Unescapes URI, and then converts any plus characters ("+") into spaces
 +|'Base64'
 +|'Base64url' | Base64 in URL encoding |
  
 \\  \\ 
 =====Examples===== =====Examples=====
- +  decode("uriComponentEscape", "one%2Bone")  //Returns 'one+one'
-  [Content] = empty()  //Returns TRUE if [Content] contains an empty value, otherwise, FALSE. +
- +
-  coalesce(empty(), 'ABC', '' //Using empty() as an argument within a function. +
- +
-  if( [Value] = 10, 'Ten', empty() )  //Using empty() to set an empty value in an If statement. +
  
 \\  \\ 
 =====See also===== =====See also=====
-  * [[syntax:functions:isempty|IsEmpty(expression)]] +  * [[syntax:functions:encode|Encode(method, text)]] 
-  * [[syntax:types|The EasyMorph Type system]] +  * [[syntax:functions:hexdecode|HexDecode(encoding, hex_text)]] 
 +  * [[syntax:functions:uridecode|URIDecode(encoding, value)]]
  
  
playground/playground.txt · Last modified: 2024/04/11 21:06 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki