• 0
Sign in to follow this  
Guest Francisco

Script Para Saudação

Question

Guest Francisco

[email protected]

Gostaria que alguém me ajudasse a corrigir este scipt: e que eu não sei se operador (and) está correcto em VB

<%if hour (now) >6 and??? <12 then %>

Bom Dia !!!

<% ifelse hour (now) >12 and??? <19 %>

Boa Tade!!!

<%ifelsehour (now) >19 then and??? <6??? %>

Boa Noite !!!!

<%end if%>

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

<%
hora = hour(now)

if ((hora > 6) and (hora < 12)) then
 Response.Write "BOM DIA, a hora é : " & hora
 Else if (hora > 12) then
 Response.Write "BOA TARDE, a hora é : " & hora
 Else 
 Response.Write "BOA NOITE, a hora é : " & hora
 end if
end if
%>

Espero que tenha ajudado!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this