Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to change a text depending of a float value

Hi everyone!

I have a really fast question (I think) that I'm struggling a bit with. I'm developing an architechtural visualization app and I just need to Print a text in the UMG that says PM or AM depending on the value of a variable I control. I'm just struggling with how to make the function. I have it like this:

alt text

This is the binding function to the text content I wanna change. When the <=1199 boolean is true, I wanna get the text to show ''AM'', and when it's >=1200 just show ''PM''. I think that probably it's quite easy but I'm struggling a bit with it.

Thank you so much!

Product Version: UE 4.18
am-pm.png (279.8 kB)
more ▼

asked Aug 09 '18 at 11:47 AM in Blueprint Scripting

avatar image

24 4 6 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Delete the >= 1200 node.

Drag a wire from your Noon/ AfterNoon text pin out to the left and type "Select". In the select Text node that appears drag a wire from the red pin on the 1199 node to the select pin. This will give you two pins on the selext node: True and False.

Now you can type in AM on the True pin and PM on the False pin.


more ▼

answered Aug 09 '18 at 12:34 PM

avatar image

3.8k 18 20 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question