File Alpha.txt File Bravo.txt
This command:
echo Line One -- {file$} echo Line Two -- {file$}
Has this output:
Line One -- "File Alpha.txt" Line One -- "File Bravo.txt" Line Two -- "File Alpha.txt" Line Two -- "File Bravo.txt"
While this command:
@perfile:begin echo Line One -- {file$} echo Line Two -- {file$} @perfile:end
Has this output:
Line One -- "File Alpha.txt" Line Two -- "File Alpha.txt" Line One -- "File Bravo.txt" Line Two -- "File Bravo.txt"
@enableif:=IsSelected("*.jpg") == 2
@if:=(selitems==totalitems) Select NONE @if:else Select ALL
Select {=selitems==totalitems ? "NONE" : "ALL"=}
@hideblock:begin @hideif:Toolbar NAME="Favorites Bar" TOGGLE
That tests if the "Favorites Bar" toolbar is turned on, and starts hiding things if it is. After it is the sub-menu containing the Favorites list.
Finally, there's another button which stops hiding things:
@hideblock:end
Anything between the two buttons will be hidden if the first button's @hideif condition is met (or @showif condition is not met).
@eval:type = PathType(source); fIsFileSystem = (type == "shell" || type == "filesys") @showif:=fIsFileSystem @label:fIsFileSystem ? ("Open " + FilePart(DisplayName(source)) + " in Explorer") : ("Disabled (" + type + ")")
Find IN C:\ [[QUERY *.jpg]] [[ FILTERDEF size match > 100 kb and size match < 200 kb ]]
@if:Set FLATVIEW=Grouped Set FLATVIEW=Off,KeepFormat Set HIDEFILTERFILENAME Set FORMAT=!folder @if:else Set HIDEFILTERFILENAME=* Set COLUMNSREMOVE=path,pathrel Set COLUMNSADD=fullpath(1) Set FLATVIEW=Grouped,KeepFormat
@if:=InStr(Arg("NAME"), "jon") echo Hi Jon! @if:else echo Who are you?
Next: Miscellaneous Scripting