User:Glynor: Difference between revisions

From wiki.jriver.com
Jump to navigation Jump to search
Line 63: Line 63:
'''{{monospace|field(date, 0)}}'''
'''{{monospace|field(date, 0)}}'''
: Returns the raw, unformatted value stored in the <span style="font-family: monospace,monospace; font-size:1em;">date</span> field. Note that this is equivalent to {{monospace|[date,0]}}.
: Returns the raw, unformatted value stored in the <span style="font-family: monospace,monospace; font-size:1em;">date</span> field. Note that this is equivalent to {{monospace|[date,0]}}.
}}

== Function Description Template ==

{{function description box
| name=saveadd
| arguments=variable, value, mode
| description=
The [[#SaveAdd|SaveAdd()]] function adds <i>value</i> to a global <i>variable</i> either numerically or as a list item.
The <i>mode</i> argument indicates how <i>variable</i> is modified.

{{argument table
| name=mode
| contents=
{{argument table row|0|Add numeric <i>value</i> (integer or decimal) to <i>variable</i>}}
{{argument table row|1|Append string <i>value</i> as a list item to <i>variable</i>}}
{{argument table row|2|Prepend string <i>value</i> as a list item to <i>variable</i>}}
}}
{{argument optional|mode|0}}
| examples=
'''{{monospace|saveadd(v, 1)}}'''
: Numerically increments the global <i>variable</i> {{monospace|v}} by {{monospace|1}}.
'''{{monospace|saveadd(v, math(2 - 6))}}'''
: Numerically increments the global <i>variable</i> {{monospace|v}} by the outcome of the [[#Math|Math()]], which is {{monospace|-4}}.
'''{{monospace|load(foo, v)saveadd(v, bar, 1)load(v)}}'''
: Loads <i>value</i> {{monospace|foo}} into <i>variable</i> {{monospace|v}}, then appends the <i>value</i> {{monospace|bar}} as a list item, and the final {{monospace|load(v)}} expression outputs the result of {{monospace|foo; bar}}.
'''{{monospace|load(That, v)saveadd(v, This, 2)load(v)}}'''
: Similar to the previous example, but using the prepend <i>mode</i>, resulting in the output {{monospace|This; That}}.
}}
}}



Revision as of 03:45, 24 January 2016

This is my page on the Wiki. My real name is Ed, I live in Maine, and this is me:

Ed with the wind in his hair.


Start building the Media Center Troubleshooting Guide page. Build the Troubleshooting Solutions page.


Span Styles

Media Center Menus

Template:Color Text

Actually, I think Template:Menu Flow would be better for long term. Or something like that...

<span style="color:#8B4513">Tools > Options > Audio</span>

Tools > Options > Audio

  • Include all items starting from the top menu for consistency.

Tree Hierarchy

<span style="color:#006400">Playing Now > Playing from <Current Library's Name></span>

Playing Now > Playing from <Current Library's Name>

OS Menus

<span style="color:#007A62">Control Panel > Hardware and Sound > Sound</span>

Control Panel > Hardware and Sound > Sound

Fix These

Function Description Test

Description field(name, mode)

The Field() function returns the value stored in field name. The format of return is selected by mode.

Available mode values:

0Raw, unformatted data
1Formatted data
  • Argument mode is optional (defaults to 1).
Examples field(album)
Returns the formatted value of field name album. Note that this is equivalent to [album].

field(date, 0)

Returns the raw, unformatted value stored in the date field. Note that this is equivalent to [date,0].
(Back to top)   (Function index)

Function Description Template

Description saveadd(variable, value, mode)

The SaveAdd() function adds value to a global variable either numerically or as a list item. The mode argument indicates how variable is modified.

Available mode values:

0Add numeric value (integer or decimal) to variable
1Append string value as a list item to variable
2Prepend string value as a list item to variable
  • Argument mode is optional (defaults to 0).
Examples saveadd(v, 1)
Numerically increments the global variable v by 1.

saveadd(v, math(2 - 6))

Numerically increments the global variable v by the outcome of the Math(), which is -4.

load(foo, v)saveadd(v, bar, 1)load(v)

Loads value foo into variable v, then appends the value bar as a list item, and the final load(v) expression outputs the result of foo; bar.

load(That, v)saveadd(v, This, 2)load(v)

Similar to the previous example, but using the prepend mode, resulting in the output This; That.
(Back to top)   (Function index)

Scratch Pad

20.0.64 (1/29/2015)

8. Changed: The automation call ProcessWebService(...) returns the response instead of just 0 or 1.

<XMLPH version="1.0">
<Item Name="UseDirectoryRule">1</Item>
<Item Name="Name">TV Shows</Item>
<Item Name="Replace Slash">1</Item>
<Item Name="FilenameRule">If(IsEmpty([Season],1),,s[Season])If(IsEmpty([Episode],1),e00,e[Episode]) - [Name]</Item>
<Item Name="BasePath">M:\</Item>
<Item Name="UseFilenameRule">1</Item>
<Item Name="Find"/>
<Item Name="Mode">0</Item>
<Item Name="UseFindReplace">0</Item>
<Item Name="Move All">0</Item>
<Item Name="DirectorySmartMultiArtistHandling">0</Item>
<Item Name="Replace"/>
<Item Name="DirectoryRule">[Media Type]\[Media Sub Type]\[Series]\[Season]\</Item>
</XMLPH>

Creating Advanced Media Views Using the Expand Search Modifier

Main Category Index