Tags:
create new tag
view all tags

SID-00691: How to execute a command based on a condition ?

Status: Answered Answered TWiki version: 4.1.2 Perl version: 5.008008 (cygwin)
Category: CategoryApplications Server OS: Windows 2003 Last update: 15 years ago

Hi, I want to execute a command (for example, setting the skin as plainskin), based on some condition (for example, if the user is xyz).

If I try using the IfDefinedPlugin, it just prevents the display of the command but executes it anyway (irrespective of who the user is). If I use INCLUDE (as in ConditionalDisplayInTemplate - wherein I set the skin parameter in another topic and include it in this topic), it displays the line but doesn't actually execute it.

Any ideas ?

-- ChengappaCB - 2009-12-23

Discussion and Answer

Not sure. Did you try VarIF?

-- PeterThoeny - 2010-02-02

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2010-04-05

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title How to execute a command based on a condition ?
SupportCategory CategoryApplications
TWiki version 4.1.2
Server OS Windows 2003
Web server Apache 1.3.39
Perl version 5.008008 (cygwin)
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010-04-05 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.