You are not registered yet. Please click here to register!

plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!

Go Back - Interactive Q & A > - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Thread Tools Display Modes
Old August 17th, 2018, 01:18 PM   #1
United States

JasonTheSparky is offline
Join Date: Aug 2015
Location: Detroit, MI
Posts: 161
Visibility Animation, FTVS Expression

I am trying to hide a button unless 2 possible users are logged in AND a DINT in my processor is == 0. I can't seem to work out the syntax with evaluating the two conditions.

Currently my expression is:
(CurrentUserName(  ) ="Person1")  OR  
(CurrentUserName( ) ="Person2") AND

Where am I going wrong?

EDIT: Figured it out myself. I am missing the parenthesis around my tag reference as the second condition, as it is a relational statement. When combining relational statements and logical statements, you need to enclose the relational statements in parenthesis. It should have looked like this:

(CurrentUserName(  ) ="JMichael")  OR  
(CurrentUserName( ) ="maint") AND

Last edited by JasonTheSparky; August 17th, 2018 at 01:27 PM.
  Reply With Quote
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Visibility Animation Delay PanelView Plus queenslandpommie LIVE PLC Questions And Answers 5 November 7th, 2014 06:55 PM
FactoryTalk View Studio - How to write expression for valve / agitator animation geoffewart LIVE PLC Questions And Answers 6 March 25th, 2014 05:23 PM
FactoryTalk Studio ME animation expression alexbeatle LIVE PLC Questions And Answers 12 August 30th, 2013 10:14 PM
FactoryTalk ME, Visibility Animation controlled by Access Level? sthays LIVE PLC Questions And Answers 8 October 10th, 2012 02:50 PM
FactoryTalk ME, Visibility Animation controlled by IP Address? sthays10 LIVE PLC Questions And Answers 6 February 8th, 2011 05:03 PM

All times are GMT -5. The time now is 10:00 PM.