Skip to content

Commit

Permalink
Item11606: better example - sorry, dcommited too early
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@14219 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Mar 6, 2012
1 parent 33b9f60 commit 917e555
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/data/System/IfStatements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ Web Sandbox %IF{"isweb 'Sandbox'" then="exists" else="does not exist"}%.
</verbatim>

---+++ Group membership
To test if the =%SOMEONE% UrlParam or Macro is set to a WikiName that is in a group:
<verbatim class="tml">%IF{"$SOMEONE ingroup 'GROUP'" then="THEN" else="ELSE"}%</verbatim>
To test if SOMEONE is in the GROUP:
<verbatim class="tml">%IF{"'SOMEONE' ingroup 'GROUP'" then="THEN" else="ELSE"}%</verbatim>

Or to test the currently logged in user:
Or to test the currently logged in user for !AdminGroup membership:
<verbatim class="tml">
You are %IF{
"$USERNAME ingroup 'AdminGroup'"
Expand Down

0 comments on commit 917e555

Please sign in to comment.